refactor: remove useless conditions
This commit is contained in:
parent
0312cb7eb4
commit
4a866ca370
1 changed files with 0 additions and 6 deletions
|
|
@ -253,15 +253,9 @@ class DatabaseQuery:
|
|||
|
||||
def get_masked_fields(self):
|
||||
"""Get masked fields for the doctype"""
|
||||
# TODO: store in session to avoid multiple calls
|
||||
if not self.doctype:
|
||||
return []
|
||||
|
||||
meta = self.get_meta(self.doctype)
|
||||
|
||||
if not meta:
|
||||
return []
|
||||
|
||||
return meta.get_masked_fields()
|
||||
|
||||
def build_and_run(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue