Skip to content

Commit

Permalink
Fix Unnecessary use of parentheses found with Dart 3 (cfug#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal authored May 12, 2023
1 parent b71f8c5 commit e663d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cookie_manager/lib/src/cookie_mgr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CookieManager extends Interceptor {
} else if (b.path == null) {
return 1;
} else {
return (b.path!.length).compareTo(a.path!.length);
return b.path!.length.compareTo(a.path!.length);
}
});
return cookies.map((cookie) => '${cookie.name}=${cookie.value}').join('; ');
Expand Down

0 comments on commit e663d8a

Please sign in to comment.