aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 20:00:06 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 20:00:06 +0900
commitef1577a212d1b5c6f908a59b943a512d33d312fe (patch)
tree7c91a689aaea376985ec579d71c1169fdc2ee47a /worker
parent205cb5e21b960852a06fa28baaa03dbbd6aa835f (diff)
downloadiosdc-japan-2025-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.tar.gz
iosdc-japan-2025-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.tar.zst
iosdc-japan-2025-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.zip
feat(backend/worker): enable `revive` in `golangci-lint`
Diffstat (limited to 'worker')
-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(