Skip to content

Commit 42db97d

Browse files
pqCommit Queue
authored andcommitted
bump linter
This is the candidate for the HEAD of the linter SDK sub-tree. Change-Id: If81b785cb53eed154d1376ebd42b3f0459800361 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320704 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent acd374c commit 42db97d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ vars = {
151151
"intl_rev": "5d65e3808ce40e6282e40881492607df4e35669f",
152152
"json_rpc_2_rev": "509f71eef90ec5afb5486b69dab7fed97b9f1eef",
153153
"leak_tracker_rev": "098bafcf99a5220e3c352d895d991e163568ee03", # b/292240713
154-
"linter_rev": "9a4bc7910d1ea2660deadae4c212776e9cf6212e", # disable rev_sdk_deps.dart
154+
"linter_rev": "7f40f112f54124e8dbfdc1e5da048643ae019b9e", # disable rev_sdk_deps.dart
155155
"lints_rev": "54cd7a033881ccfd9ec66133bf9a4f128870cb9e",
156156
"logging_rev": "521498757ed3eeae151c2d4796404e8947baa04c",
157157
"markdown_rev": "faabb1ab9adc076a2df2349a0c8b939c92f70ca7",

pkg/dds/lib/src/dap/adapters/dart.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ abstract class DartDebugAdapter<TL extends LaunchRequestArguments,
10961096
/// If no message could be extracted, returns the whole original error.
10971097
String extractEvaluationErrorMessage(String rawError) {
10981098
final match = _evalErrorMessagePattern.firstMatch(rawError);
1099-
final shortError = match != null ? match.group(1)! : null;
1099+
final shortError = match?.group(1);
11001100
return shortError ?? rawError;
11011101
}
11021102

@@ -1105,7 +1105,7 @@ abstract class DartDebugAdapter<TL extends LaunchRequestArguments,
11051105
/// If no message could be extracted, returns the whole original error.
11061106
String extractUnhandledExceptionMessage(String rawError) {
11071107
final match = _exceptionMessagePattern.firstMatch(rawError);
1108-
final shortError = match != null ? match.group(1)! : null;
1108+
final shortError = match?.group(1);
11091109
return shortError ?? rawError;
11101110
}
11111111

0 commit comments

Comments
 (0)