Remove one set of parens that wrap a single String literal (#152031)
In order to address https://github.com/dart-lang/linter/issues/4354, we are reporting a few more cases in unnecessary_parenthesis. `('text') * 2` is one such case. This change is being made in https://dart-review.googlesource.com/c/sdk/+/376540. (These are the only newly-reported unnecessary parentheses for this change.)
This commit is contained in:
parent
831cfd283a
commit
7777d67a66
@ -21,7 +21,7 @@ void main() {
|
||||
);
|
||||
bufferLogger.printStatus('0123456789' * 8);
|
||||
|
||||
expect(bufferLogger.statusText, equals(('${'0123456789' * 4}\n') * 2));
|
||||
expect(bufferLogger.statusText, equals('${'0123456789' * 4}\n' * 2));
|
||||
});
|
||||
|
||||
testWithoutContext('can turn off wrapping', () async {
|
||||
|
Loading…
x
Reference in New Issue
Block a user