Fix golangci lint while preserving output format

Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
JustusBunsi 2024-11-28 21:08:05 +01:00
parent e61890e02e
commit 2901259a67
No known key found for this signature in database
GPG Key ID: CD7F8FCE851C5902

View File

@ -4,7 +4,6 @@
package main
import (
"fmt"
"os"
"code.gitea.io/gitea/modules/log"
@ -93,7 +92,7 @@ func runIniToShell(c *cli.Context) error {
log.Fatal("Section '%s' does not have key '%s'", sName, kName)
}
fmt.Printf("%s", section.Key(kName).Value())
os.Stdout.Write([]byte(section.Key(kName).Value()))
return nil
}