Skip to content

Commit

Permalink
Remove unused catch
Browse files Browse the repository at this point in the history
  • Loading branch information
renefloor committed Dec 31, 2023
1 parent f7e9672 commit 08599c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ImageLoader implements platform.ImageLoader {
yield decoded;
}
}
} on Object catch (e) {
} on Object {
// Depending on where the exception was thrown, the image cache may not
// have had a chance to track the key in the cache at all.
// Schedule a microtask to give the cache a chance to add the key.
Expand Down
2 changes: 1 addition & 1 deletion cached_network_image_web/lib/cached_network_image_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ImageLoader implements platform.ImageLoader {
yield decoded;
}
}
} on Object catch (e) {
} on Object {
// Depending on where the exception was thrown, the image cache may not
// have had a chance to track the key in the cache at all.
// Schedule a microtask to give the cache a chance to add the key.
Expand Down

0 comments on commit 08599c6

Please sign in to comment.