Simplify file_archive_file_list_new
This commit is contained in:
parent
c6ab19e59c
commit
14b297b144
|
@ -684,9 +684,7 @@ struct string_list *file_archive_file_list_new(const char *path,
|
||||||
const char* ext)
|
const char* ext)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_COMPRESSION
|
#ifdef HAVE_COMPRESSION
|
||||||
bool compressed = path_is_compressed_file(path);
|
if (path_is_compressed_file(path))
|
||||||
|
|
||||||
if (compressed)
|
|
||||||
return file_archive_get_file_list(path, ext);
|
return file_archive_get_file_list(path, ext);
|
||||||
#endif
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue