mirror of
https://github.com/go-gitea/gitea
synced 2025-01-02 13:55:57 +01:00
Fix golangci lint while preserving output format
Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com>
This commit is contained in:
parent
e61890e02e
commit
2901259a67
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user