Skip to content

Commit

Permalink
fixed dartfmt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
NiKoTron committed May 4, 2020
1 parent e990187 commit b4f40a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/xy.dart
Expand Up @@ -95,8 +95,7 @@ class XY {
}

@override
bool operator ==(other) =>
other is XY && x == other.x && y == other.y;
bool operator ==(other) => other is XY && x == other.x && y == other.y;

@override
int get hashCode => x.hashCode ^ y.hashCode;
Expand Down
2 changes: 2 additions & 0 deletions tool/travis/swag.sh
Expand Up @@ -4,6 +4,8 @@ pub get || exit $

EXIT_CODE=0
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
echo "dartfmt exit with ${EXIT_CODE}"
dartanalyzer --fatal-infos --fatal-warnings . || EXIT_CODE=$?
echo "dartanalyzer exit with ${EXIT_CODE}"

exit $EXIT_CODE

0 comments on commit b4f40a8

Please sign in to comment.