Skip to content

Commit 446278e

Browse files
committed
ci: ignore no_default_cases rule and update error handler
- Add no_default_cases to ignored lint rules in analysis_options.yaml - Remove unnecessary trailing comma in error_handler.dart
1 parent 915e969 commit 446278e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ analyzer:
33
errors:
44
avoid_redundant_argument_values: ignore
55
avoid_print: ignore
6+
no_default_cases: ignore
67
exclude:
78
- build/**
89
linter:

lib/src/middlewares/error_handler.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,5 @@ String _mapExceptionToCodeString(HtHttpException exception) {
8585
NetworkException() => 'NETWORK_ERROR',
8686
UnknownException() => 'UNKNOWN_ERROR',
8787
_ => 'UNKNOWN_ERROR',
88-
8988
};
9089
}

0 commit comments

Comments
 (0)