Break out of switch after printing notes (no need to check additional lines)

This commit is contained in:
2024-04-05 12:57:57 -04:00
parent 074e74b622
commit ad7e90c43e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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
+3
View File
@@ -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
}
}