fix issues with gosec and staticcheck
All checks were successful
CI / Tests (pull_request) Successful in 8s
CI / Style (pull_request) Successful in 9s

This commit is contained in:
Dan Anglin 2024-10-13 12:58:40 +01:00
parent d25c157b20
commit acb1aafe24
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 2 additions and 9 deletions

View file

@ -7,13 +7,6 @@ import (
"codeflow.dananglin.me.uk/apollo/indieauth-server/internal/executors"
)
var (
binaryVersion string
buildTime string
goVersion string
gitCommit string
)
func main() {
// Set up logging
loggingLevel := new(slog.LevelVar)

View file

@ -52,7 +52,7 @@ func (e *versionExecutor) printVersion() {
_, _ = tableWriter.Write([]byte("Go version:" + "\t" + info.GoVersion + "\n"))
_, _ = tableWriter.Write([]byte("Build date:" + "\t" + info.BuildTime + "\n"))
tableWriter.Flush()
_ = tableWriter.Flush()
os.Stdout.WriteString(builder.String())
_, _ = os.Stdout.WriteString(builder.String())
}