Skip to content

Commit 412ad3b

Browse files
yujuneteeyujune
authored andcommitted
Remove redundant checking.
1 parent 929fae5 commit 412ad3b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,11 +1476,7 @@ class DefaultAssetPickerBuilderDelegate
14761476
}
14771477

14781478
int semanticIndex(int index) {
1479-
if (prependSpecialItems.isNotEmpty) {
1480-
return index - prependSpecialItems.length;
1481-
}
1482-
1483-
return index;
1479+
return index - prependSpecialItems.length;
14841480
}
14851481

14861482
@override

0 commit comments

Comments
 (0)