use bool in assert (#12170)

This commit is contained in:
Alexandre Ardhuin
2017-09-21 09:33:01 +02:00
committed by GitHub
parent cde6b669b3
commit 2958d7d0fc
74 changed files with 312 additions and 312 deletions

View File

@@ -186,7 +186,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
assert(() {
showPreviewBanner = false;
return true;
});
}());
if (showPreviewBanner) {
home = new Stack(

View File

@@ -331,7 +331,7 @@ List<GalleryItem> _buildGalleryItems() {
),
);
return true;
});
}());
return galleryItems;
}