[Rules] Removing unnecessary 'if' condition

This commit is contained in:
Ashesh Vashi 2020-04-08 13:14:14 +05:30
parent 6c693d158e
commit 8fe687eb55

View File

@ -70,16 +70,15 @@ class RuleModule(CollectionNodeModule):
SQL = render_template("/".join(
[self.template_path, 'backend_support.sql']
), vid=kwargs['vid'])
status, res = conn.execute_scalar(SQL)
# check if any errors
if not status:
return internal_server_error(errormsg=res)
# Check tid is view not material view
# then true, othewise false
if res is True:
return res
else:
return res
return res
def get_nodes(self, gid, sid, did, scid, **kwargs):
"""