Skip to content

Commit

Permalink
Fix violations of unnecessary_parenthesis lint
Browse files Browse the repository at this point in the history
https://dart-lang.github.io/linter/lints/unnecessary_parenthesis.html

Remove parentheses where they are not necessary.

Discussion: https://groups.google.com/a/google.com/g/dart-lints/c/8l7liE-khQk/m/z8qKlIQYBAAJ

go/dart-trivial-lint-cleanup-lsc

Tested:
    TAP train for global presubmit queue
    http://test/OCL:507704828:BASE:507730771:1675786959002:dcee7be6
PiperOrigin-RevId: 508021974
  • Loading branch information
srawlins committed Feb 16, 2023
1 parent d2a8df1 commit d5a25f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2252,11 +2252,11 @@ extension on int {
String get ordinal {
final remainder = this % 10;
switch (remainder) {
case (1):
case 1:
return '${this}st';
case (2):
case 2:
return '${this}nd';
case (3):
case 3:
return '${this}rd';
default:
return '${this}th';
Expand Down

0 comments on commit d5a25f8

Please sign in to comment.