1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-14 14:37:20 +00:00

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

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
}