From e43e6817fcb8eeeae67c7be60bb1c8e04dc92d1c Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Tue, 23 Jun 2020 19:38:24 -0300 Subject: [PATCH] PR nits --- scripts/lint.sh | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index f273745d0..ad561415e 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -16,19 +16,14 @@ for f in doc/examples/**/pubspec.yaml; do cd - > /dev/null done -analyzer() { - cd $1 - flutter pub get - result=$(flutter analyze .) - if ! echo "$result" | grep -q "No issues found!"; then - echo "$result" - echo "flutter analyze issue: $1" - exit 1 - fi - cd - > /dev/null -} - -analyzer . +cd . +flutter pub get +result=$(flutter analyze .) +if ! echo "$result" | grep -q "No issues found!"; then + echo "$result" + echo "flutter analyze issue: $1" + exit 1 +fi echo "success" exit 0