Browse Source

Fix lint error on ignored error for win console

Daniel Hiltgen 1 năm trước cách đây
mục cha
commit
823a520266
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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{