Simplifying method
This commit is contained in:
1 parent
982ee24b60
commit
d66ceee959
1 file changed
+2
-6
@@ -167,12 +167,8 @@ public class DirectoryManager : BaseManager
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsDirectoryEmpty(string path)
|
||||
{
|
||||
var paths = Directory.EnumerateFileSystemEntries(path);
|
||||
|
||||
return !paths.Any();
|
||||
}
|
||||
private bool IsDirectoryEmpty(string path) =>
|
||||
!(Directory.EnumerateFileSystemEntries(path).Any());
|
||||
|
||||
private string AlbumDirectory()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user