From e71c3cde3c608c90b35610ecab8557f96428c525 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 14 Nov 2020 17:48:48 -0800 Subject: [PATCH] minor refactoring for clarity --- bin/kaleidoscope-builder | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 64e3cc01..562c8d2d 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -199,11 +199,11 @@ _find_sketch() { return fi done - SKETCH_NOT_FOUND=1 - if [ -n "${SKETCH_NOT_FOUND}" ]; then - echo "I couldn't find your sketch (.ino file)" >&2 - exit 1 - fi + + + # Didn't find a sketch + echo "I couldn't find your sketch (.ino file)" >&2 + exit 1 } _prompt_before_flashing() {