From b4f40a8d729182c547207c37ac38c0a97270af9f Mon Sep 17 00:00:00 2001 From: Nikolai Simonov Date: Mon, 4 May 2020 16:13:56 +0300 Subject: [PATCH] fixed dartfmt warning --- lib/src/xy.dart | 3 +-- tool/travis/swag.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/xy.dart b/lib/src/xy.dart index a1315f2..14edef5 100644 --- a/lib/src/xy.dart +++ b/lib/src/xy.dart @@ -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; diff --git a/tool/travis/swag.sh b/tool/travis/swag.sh index 1063ca5..f2f5db2 100755 --- a/tool/travis/swag.sh +++ b/tool/travis/swag.sh @@ -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 \ No newline at end of file