Miscellaneous tweaks and fixes (#2223)

* Miscellaneous tweaks and fixes

Mostly these were found by running golangci-lint with a bunch of linters
(more than the default set) enabled.

* fmt.Fprint -> fmt.Fprintln where possible

* Remove "nolint:staticcheck" for now
This commit is contained in:
Carlo Teubner authored and GitHub committed 2025-10-28 15:10:32 +11:00
1 parent b12cb33918
commit fc4b3637bb
11 files changed
+105 -108

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ func main() {
case 1:
gSelect = flag.Arg(0)
default:
fmt.Fprintf(os.Stderr, "only single file or directory is allowed\n")
fmt.Fprintln(os.Stderr, "only single file or directory is allowed")
os.Exit(2)
}