fix minor linting issues

Making my IDE less noisy

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-15 22:30:38 +02:00
parent 40715adc99
commit 69702bd821
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ func main() {
// Set terminal emulation based on platform as required.
_, stdout, stderr := term.StdStreams()
onError := func(err error) {
fmt.Fprintf(stderr, "%s\n", err)
_, _ = fmt.Fprintln(stderr, err)
os.Exit(1)
}

View File

@@ -9,14 +9,14 @@ import (
// Enable sets the DEBUG env var to true
// and makes the logger to log at debug level.
func Enable() {
os.Setenv("DEBUG", "1")
_ = os.Setenv("DEBUG", "1")
_ = log.SetLevel("debug")
}
// Disable sets the DEBUG env var to false
// and makes the logger to log at info level.
func Disable() {
os.Setenv("DEBUG", "")
_ = os.Unsetenv("DEBUG")
_ = log.SetLevel("info")
}