Skip to content

Commit

Permalink
fix: return statement should be outside of if-else
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejplonski-saucelabs committed Dec 11, 2023
1 parent e41e0df commit e01fc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/imagerunner/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (a *AsyncEventManager) ParseEvent(event string) (AsyncEventI, error) {
log.Fatal(err)
}
return &pingEvent, nil
} else {
return nil, fmt.Errorf("unknown event type: %s", v.GetKind())
}

return nil, fmt.Errorf("unknown event type: %s", v.GetKind())
}

0 comments on commit e01fc88

Please sign in to comment.