From 0ee803dc78ac42ea1aa493daaf88d7fc997809ba Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 5 Apr 2024 12:57:57 -0400 Subject: [PATCH] Break out of switch after printing notes (no need to check additional lines) --- commit.sh | 2 +- src/cli/entryReader.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/commit.sh b/commit.sh index c17d05a..729c383 100755 --- a/commit.sh +++ b/commit.sh @@ -1,6 +1,6 @@ #!/bin/sh gofmt -l -w -s ./src/cli/*.go gofmt -l -w -s ./src/offline/*.go -git add -f extra glamour-styles src .gitignore commit.sh go.mod go.sum LICENSE main.go README.md +git add -f extra src .gitignore commit.sh go.mod go.sum LICENSE main.go README.md git commit -m "$1" git push diff --git a/src/cli/entryReader.go b/src/cli/entryReader.go index 2eab326..c4ca6d6 100644 --- a/src/cli/entryReader.go +++ b/src/cli/entryReader.go @@ -51,6 +51,9 @@ func EntryReader(decryptedEntry []string, hidePassword bool, sync bool) { // print markdown-rendered notes fmt.Print(markdownNotesString) + + // break after all lines have been printed + break } }