mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Simplify code
This commit is contained in:
parent
2fb0d6a155
commit
7b95bc7fe7
1 changed files with 2 additions and 6 deletions
|
@ -53,12 +53,8 @@ class ScanDir {
|
|||
|
||||
/// Return if this dir should be ignored in a scan op based on files under
|
||||
/// this dir
|
||||
static bool _shouldScanIgnoreDir(Iterable<File> files) {
|
||||
return files.any((element) {
|
||||
final basename = element.filename;
|
||||
return basename == ".nomedia" || basename == ".noimage";
|
||||
});
|
||||
}
|
||||
static bool _shouldScanIgnoreDir(Iterable<File> files) =>
|
||||
files.any((f) => file_util.isNoMediaMarker(f));
|
||||
|
||||
final FileRepo fileRepo;
|
||||
|
||||
|
|
Loading…
Reference in a new issue