Skip to content

Commit 834197c

Browse files
authored
Remove file exist assertion
Assertion will not compile in production and assert file existence is not much useful in lab environment. Moreover it is not easy for testing.
1 parent e510e44 commit 834197c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/src/cropper.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class ImageCropper {
7676
AndroidUiSettings? androidUiSettings,
7777
IOSUiSettings? iosUiSettings,
7878
}) async {
79-
assert(await File(sourcePath).exists());
8079
assert(maxWidth == null || maxWidth > 0);
8180
assert(maxHeight == null || maxHeight > 0);
8281
assert(compressQuality >= 0 && compressQuality <= 100);

0 commit comments

Comments
 (0)