Skip to content

Commit f487b6f

Browse files
committed
fix tests
1 parent 10c0cca commit f487b6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bricks/dart_frog_prod_server/hooks/lib/src/pubspec_lock/pubspec_lock.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class PubspecLock {
2828
late final YamlMap yaml;
2929
try {
3030
yaml = loadYaml(content) as YamlMap;
31-
} on Exception catch (_) {
31+
// ignoring for backward compatibility
32+
// ignore: avoid_catches_without_on_clauses
33+
} catch (_) {
3234
throw const PubspecLockParseException();
3335
}
3436

@@ -46,7 +48,9 @@ class PubspecLock {
4648
data: entry.value as YamlMap,
4749
);
4850
parsedPackages.add(package);
49-
} on Exception catch (_) {
51+
// ignoring for backward compatibility
52+
// ignore: avoid_catches_without_on_clauses
53+
} catch (_) {
5054
// Ignore those packages that for some reason cannot be parsed.
5155
}
5256
}

0 commit comments

Comments
 (0)