Simplifying return statement for jobExists
This commit is contained in:
parent
d7539783b0
commit
e709f8405c
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue