Skip to content

Commit 60eab33

Browse files
committed
fix: dart formatting fixes
1 parent 63504e5 commit 60eab33

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

pkg/linter/lib/src/rules/null_closures.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ final Map<String, Set<NonNullableFunction>>
9393
},
9494
'splitMap': {
9595
NonNullableFunction('dart.core', 'Iterable', 'splitMap',
96-
named: ['onMatch', 'onNonMatch']),
96+
named: ['onMatch', 'onNonMatch']),
9797
},
9898
'takeWhile': {
9999
NonNullableFunction('dart.core', 'Iterable', 'takeWhile', positional: [0]),

sdk/lib/_internal/js_dev_runtime/private/js_string.dart

+9-8
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,20 @@ final class JSString extends Interceptor
8585

8686
@notNull
8787
Iterable<T> splitMap<T>(
88-
Pattern pattern, {
89-
T Function(Match match)? onMatch,
90-
T Function(String nonMatch)? onNonMatch,
91-
}) {
92-
return stringSplitMapUnchecked(this, pattern, onMatch, onNonMatch);
93-
}
88+
Pattern pattern, {
89+
T Function(Match match)? onMatch,
90+
T Function(String nonMatch)? onNonMatch,
91+
}) {
92+
return stringSplitMapUnchecked(this, pattern, onMatch, onNonMatch);
93+
}
9494

95-
Iterable<T> stringSplitMapUnchecked<T>(String receiver, Pattern pattern,
95+
Iterable<T> stringSplitMapUnchecked<T>(String receiver, Pattern pattern,
9696
T Function(Match)? onMatch, T Function(String)? onNonMatch) {
9797
onMatch ??= (match) => match[0]! as T;
9898
onNonMatch ??= (string) => string as T;
9999
if (pattern is String) {
100-
return stringSplitStringMapUnchecked(receiver, pattern, onMatch, onNonMatch);
100+
return stringSplitStringMapUnchecked(
101+
receiver, pattern, onMatch, onNonMatch);
101102
}
102103
if (pattern is JSSyntaxRegExp) {
103104
return stringSplitJSRegExpMapUnchecked(receiver, pattern, onMatch, onNonMatch);

sdk/lib/_internal/js_runtime/lib/js_string.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ final class JSString extends Interceptor
8585
}
8686

8787
Iterable<T> stringSplitMapUnchecked<T>(String receiver, Pattern pattern,
88-
T Function(Match)? onMatch, T Function(String)? onNonMatch) {
88+
T Function(Match)? onMatch, T Function(String)? onNonMatch) {
8989
onMatch ??= (match) => match[0]! as T;
9090
onNonMatch ??= (string) => string as T;
9191
if (pattern is String) {

0 commit comments

Comments
 (0)