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:
Sam Rawlins 2024-08-01 12:13:13 -07:00 committed by GitHub
parent 831cfd283a
commit 7777d67a66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {