refactor(redis_client): upgrade analysis_options (#2716)
This commit is contained in:
@@ -1 +1 @@
|
||||
include: package:very_good_analysis/analysis_options.5.1.0.yaml
|
||||
include: package:very_good_analysis/analysis_options.7.0.0.yaml
|
||||
|
||||
@@ -318,7 +318,7 @@ class RedisClient {
|
||||
.then((_) => onConnectionClosed())
|
||||
.catchError(onConnectionClosed),
|
||||
);
|
||||
} catch (error, stackTrace) {
|
||||
} on Exception catch (error, stackTrace) {
|
||||
onConnectionClosed(error, stackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@ dependencies:
|
||||
|
||||
dev_dependencies:
|
||||
test: ^1.19.2
|
||||
very_good_analysis: ">=5.1.0 <7.0.0"
|
||||
very_good_analysis: ^7.0.0
|
||||
|
||||
@@ -175,7 +175,7 @@ void main() {
|
||||
try {
|
||||
await client.execute(['RESET']);
|
||||
await client.execute(['FLUSHALL']);
|
||||
} catch (_) {
|
||||
} on Exception {
|
||||
// ignore
|
||||
}
|
||||
});
|
||||
@@ -228,7 +228,7 @@ void main() {
|
||||
try {
|
||||
await client.execute(['RESET']);
|
||||
await client.execute(['FLUSHALL']);
|
||||
} catch (_) {
|
||||
} on Exception {
|
||||
// ignore
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user