Bladeren bron

Fix lint error on ignored error for win console

Daniel Hiltgen 1 jaar geleden
bovenliggende
commit
823a520266
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      cmd/cmd.go

+ 1 - 1
cmd/cmd.go

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