Added fix for CWE 561: Dead Code(Logically dead code)
Change-Id: Idcc650b93feb013330f7fc4156104c6c311b751d
Signed-off-by: 36970 <jegan.s@tataelxsi.co.in>
"{}/{}".format(self._apiBase, subscription_id)
)
self._logger.debug(yaml.safe_dump(resp))
- if resp:
- return json.loads(resp)
if not resp or "id" not in resp:
raise ClientException(
"failed to get subscription info: {}".format(resp)
)
- return resp
+ return json.loads(resp)
except NotFound:
raise NotFound("subscription '{}' not found".format(subscription_id))