Skip to content

Commit 08599c6

Browse files
committed
Remove unused catch
1 parent f7e9672 commit 08599c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cached_network_image/lib/src/image_provider/_image_loader.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class ImageLoader implements platform.ImageLoader {
125125
yield decoded;
126126
}
127127
}
128-
} on Object catch (e) {
128+
} on Object {
129129
// Depending on where the exception was thrown, the image cache may not
130130
// have had a chance to track the key in the cache at all.
131131
// Schedule a microtask to give the cache a chance to add the key.

cached_network_image_web/lib/cached_network_image_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ImageLoader implements platform.ImageLoader {
137137
yield decoded;
138138
}
139139
}
140-
} on Object catch (e) {
140+
} on Object {
141141
// Depending on where the exception was thrown, the image cache may not
142142
// have had a chance to track the key in the cache at all.
143143
// Schedule a microtask to give the cache a chance to add the key.

0 commit comments

Comments
 (0)