bugfix: remove extraneous return
This commit is contained in:
parent
0fcea9342f
commit
c2085858a7
|
@ -461,7 +461,6 @@ func run(curHook *webhooks.Ref, runOpts *options.ServerConfig) {
|
|||
Actives.Store(pendingID, j)
|
||||
|
||||
go func() {
|
||||
// TODO make configurable
|
||||
timer := time.AfterFunc(runOpts.DefaultMaxJobTime, func() {
|
||||
if nil == cmd.Process {
|
||||
log.Printf("[SANITY] [%s] never exited, but does not exist", pendingID)
|
||||
|
|
|
@ -240,13 +240,12 @@ func TestRecents(t *testing.T) {
|
|||
urlRevID := webhooks.URLSafeGitID(
|
||||
base64.RawURLEncoding.EncodeToString([]byte(hook.GetRevID())),
|
||||
)
|
||||
//lint:ignore SA4006 The linter is wrong, j is used
|
||||
|
||||
j, err = LoadLogs(runOpts, urlRevID)
|
||||
if nil != err {
|
||||
t.Errorf("error loading logs: %v", err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if len(j.Logs) < 3 {
|
||||
|
|
Loading…
Reference in New Issue