From 2901259a673516c006506ca83c3d461b2afdcaba Mon Sep 17 00:00:00 2001 From: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Date: Thu, 28 Nov 2024 21:08:05 +0100 Subject: [PATCH] Fix golangci lint while preserving output format Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com> --- contrib/ini-to-shell/ini-to-shell.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/ini-to-shell/ini-to-shell.go b/contrib/ini-to-shell/ini-to-shell.go index 90f25f9e003..c5599ffae01 100644 --- a/contrib/ini-to-shell/ini-to-shell.go +++ b/contrib/ini-to-shell/ini-to-shell.go @@ -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 }