Преглед изворни кода

Fix lint error on ignored error for win console

Daniel Hiltgen пре 1 година
родитељ
комит
823a520266
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cmd/cmd.go

+ 1 - 1
cmd/cmd.go

@@ -815,7 +815,7 @@ func NewCLI() *cobra.Command {
 
 	if runtime.GOOS == "windows" {
 		// Enable colorful ANSI escape code in Windows terminal (disabled by default)
-		console.ConsoleFromFile(os.Stdout)
+		console.ConsoleFromFile(os.Stdout) //nolint:errcheck
 	}
 
 	rootCmd := &cobra.Command{