From 79843d8a9ac1930eec4efa506c7372c281bd5824 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Mon, 11 Apr 2022 15:51:44 +0900 Subject: [PATCH] static analysis --- lib/model/source/album.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/source/album.dart b/lib/model/source/album.dart index eedeea81c..3808fe9d9 100644 --- a/lib/model/source/album.dart +++ b/lib/model/source/album.dart @@ -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) {