From e709f8405cb6e094de7a9ec910d1a55d78a43c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A1n=20Del=20Valle?= Date: Mon, 10 May 2021 10:39:22 -0700 Subject: [PATCH] Simplifying return statement for jobExists --- helpers.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/helpers.go b/helpers.go index 526e6e3..1f06e10 100644 --- a/helpers.go +++ b/helpers.go @@ -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 }