diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-08 20:00:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 20:00:06 +0900 |
| commit | ef1577a212d1b5c6f908a59b943a512d33d312fe (patch) | |
| tree | 7c91a689aaea376985ec579d71c1169fdc2ee47a /worker | |
| parent | 205cb5e21b960852a06fa28baaa03dbbd6aa835f (diff) | |
| download | iosdc-japan-2024-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.tar.gz iosdc-japan-2024-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.tar.zst iosdc-japan-2024-albatross-ef1577a212d1b5c6f908a59b943a512d33d312fe.zip | |
feat(backend/worker): enable `revive` in `golangci-lint`
Diffstat (limited to 'worker')
| -rw-r--r-- | worker/exec.go | 6 |
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( |
