static analysis

This commit is contained in:
Thibault Deckers 2022-04-11 15:51:44 +09:00
parent 717c5194b1
commit 79843d8a9a

View file

@ -196,7 +196,7 @@ mixin AlbumMixin on SourceBase {
final volumePath = dir.volumePath;
String trimVolumePath(String? path) => path!.substring(dir.volumePath.length);
final otherAlbumsOnVolume = otherAlbumsOnDevice.where((path) => path!.startsWith(volumePath)).map(trimVolumePath).toSet();
final otherAlbumsOnVolume = otherAlbumsOnDevice.where((path) => path.startsWith(volumePath)).map(trimVolumePath).toSet();
final uniqueNameInVolume = unique(trimVolumePath(dirPath), otherAlbumsOnVolume);
final volume = androidFileUtils.getStorageVolume(dirPath)!;
if (volume.isPrimary) {