diff options
Diffstat (limited to 'worker/exec.go')
| -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( |
