Skip to content

Commit c43d1b2

Browse files
committed
Ignore catch e value
1 parent 7f1e2e1 commit c43d1b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/payloads/image_payload.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class ImagePayload extends Payload {
4343
final data = _stripDataPrefix(_location);
4444
try {
4545
return base64Encode(base64Decode(data)) == data;
46-
} catch (e) {
46+
} catch (_) {
4747
return false;
4848
}
4949
}

lib/src/settings/ray_settings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ final class RaySettings {
6868
try {
6969
final data = File(configFilePath).readAsStringSync();
7070
return jsonDecode(data);
71-
} catch (e) {
71+
} catch (_) {
7272
rethrow;
7373
}
7474
}

0 commit comments

Comments
 (0)