Simplifying return statement for jobExists

This commit is contained in:
Renán Del Valle 2021-05-10 10:39:22 -07:00
parent d7539783b0
commit e709f8405c
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -12,13 +12,9 @@ func (r *realisClient) jobExists(key aurora.JobKey) bool {
return false
}
if resp == nil ||
return resp == nil ||
resp.GetResult_() == nil ||
resp.GetResult_().GetConfigSummaryResult_() == nil ||
resp.GetResult_().GetConfigSummaryResult_().GetSummary() == nil ||
resp.GetResponseCode() != aurora.ResponseCode_OK {
return false
}
return true
resp.GetResponseCode() != aurora.ResponseCode_OK
}