aboutsummaryrefslogtreecommitdiff
path: root/internal/process
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 17:55:17 +0800
committerGitHub <noreply@github.com>2022-03-06 17:55:17 +0800
commite452d94fc842da6623c8fde67b9d71a1ee739f0a (patch)
treee8e0c1c5206bed01f4634dc81ebcbf5af77f8d65 /internal/process
parent2466da4e82c3658cb9e05498961ad130e0467f0d (diff)
autofix: format code with gofumpt and gofmt (#6803)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/process')
-rw-r--r--internal/process/manager.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/process/manager.go b/internal/process/manager.go
index 274e63df..042486a5 100644
--- a/internal/process/manager.go
+++ b/internal/process/manager.go
@@ -15,9 +15,7 @@ import (
log "unknwon.dev/clog/v2"
)
-var (
- ErrExecTimeout = errors.New("process execution timeout")
-)
+var ErrExecTimeout = errors.New("process execution timeout")
const DEFAULT_TIMEOUT = 60 * time.Second
@@ -41,8 +39,10 @@ func (c *pidCounter) PID() int64 {
return c.pid
}
-var counter = new(pidCounter)
-var Processes []*Process
+var (
+ counter = new(pidCounter)
+ Processes []*Process
+)
// Add adds a process to global list and returns its PID.
func Add(desc string, cmd *exec.Cmd) int64 {