summaryrefslogtreecommitdiff
path: root/internal/utils/exec.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-09-04 09:20:23 +1000
committerGitHub <noreply@github.com>2023-09-04 09:20:23 +1000
commitfb4be19d03de95c45ea06b3cc9586738b3579d31 (patch)
tree135f76adab9c9e8133e7f35a48bcfebbb8b45ce8 /internal/utils/exec.go
parent224c1f39cfb758533051b3dd74b4c2ad27099d8f (diff)
test: refactor linting (#5956)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/utils/exec.go')
-rw-r--r--internal/utils/exec.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/utils/exec.go b/internal/utils/exec.go
index 6a56bf8ad..8dd56fac9 100644
--- a/internal/utils/exec.go
+++ b/internal/utils/exec.go
@@ -73,12 +73,12 @@ func RunCommandUntilCtrlC(cmd *exec.Cmd) {
f := bufio.NewWriter(os.Stdout)
defer f.Flush()
- fmt.Println("Hit Ctrl+C to shutdown...")
+ fmt.Println("Hit Ctrl+C to shutdown...") //nolint:forbidigo
err := cmd.Run()
if err != nil {
- fmt.Println(err)
+ fmt.Println(err) //nolint:forbidigo
cond.Broadcast()
mutex.Unlock()
@@ -109,13 +109,13 @@ func RunFuncUntilCtrlC(fn func() error) error {
f := bufio.NewWriter(os.Stdout)
defer f.Flush()
- fmt.Println("Hit Ctrl+C to shutdown...")
+ fmt.Println("Hit Ctrl+C to shutdown...") //nolint:forbidigo
err := fn()
if err != nil {
errorChannel <- err
- fmt.Println(err)
+ fmt.Println(err) //nolint:forbidigo
cond.Broadcast()
mutex.Unlock()
@@ -150,7 +150,7 @@ func RunCommandWithTimeout(cmd *exec.Cmd, timeout time.Duration) error {
select {
case <-time.After(timeout):
- fmt.Printf("Timeout of %ds reached... Killing process...\n", int64(timeout/time.Second))
+ fmt.Printf("Timeout of %ds reached... Killing process...\n", int64(timeout/time.Second)) //nolint:forbidigo
if err := cmd.Process.Kill(); err != nil {
return err