aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/exec.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 20:00:48 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 20:00:48 +0900
commite9f88eefec3e4098e9374e19c9e0f7a52c319f26 (patch)
tree7c91a689aaea376985ec579d71c1169fdc2ee47a /worker/exec.go
parent9e5500269746d3826382a6dec78f0e82cfda0d42 (diff)
parentef1577a212d1b5c6f908a59b943a512d33d312fe (diff)
downloadphperkaigi-2025-albatross-e9f88eefec3e4098e9374e19c9e0f7a52c319f26.tar.gz
phperkaigi-2025-albatross-e9f88eefec3e4098e9374e19c9e0f7a52c319f26.tar.zst
phperkaigi-2025-albatross-e9f88eefec3e4098e9374e19c9e0f7a52c319f26.zip
Merge branch 'feat/golangci-lint'
Diffstat (limited to 'worker/exec.go')
-rw-r--r--worker/exec.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/worker/exec.go b/worker/exec.go
index fb238c3..bd49162 100644
--- a/worker/exec.go
+++ b/worker/exec.go
@@ -76,12 +76,10 @@ func convertCommandErrorToResultType(err error) string {
if err != nil {
if err == context.DeadlineExceeded {
return resultTimeout
- } else {
- return resultRuntimeError
}
- } else {
- return resultSuccess
+ return resultRuntimeError
}
+ return resultSuccess
}
func execSwiftCompile(