mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
[Rules] Removing unnecessary 'if' condition
This commit is contained in:
parent
6c693d158e
commit
8fe687eb55
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user