From 011430af844596826e0eafca7d7b9a4dc25f5039 Mon Sep 17 00:00:00 2001 From: jm33-m0 Date: Thu, 26 Dec 2024 16:12:33 +1100 Subject: [PATCH] linting --- core/lib/cc/cli.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/lib/cc/cli.go b/core/lib/cc/cli.go index 82fd03035..1388cb045 100644 --- a/core/lib/cc/cli.go +++ b/core/lib/cc/cli.go @@ -721,9 +721,9 @@ func CopyToClipboard(data []byte) { CliPrintWarning("%s not installed", exe) return } - stdin, err := cmd.StdinPipe() - if err != nil { - CliPrintWarning("CopyToClipboard read stdin: %v", err) + stdin, stdinErr := cmd.StdinPipe() + if stdinErr != nil { + CliPrintWarning("CopyToClipboard read stdin: %v", stdinErr) return } go func() { @@ -731,9 +731,9 @@ func CopyToClipboard(data []byte) { _, _ = stdin.Write(data) }() - err = cmd.Run() - if err != nil { - CliPrintWarning("CopyToClipboard: %v", err) + stdinErr = cmd.Run() + if stdinErr != nil { + CliPrintWarning("CopyToClipboard: %v", stdinErr) } CliPrintInfo("Copied to clipboard") }