refactor: remove useless conditions

This commit is contained in:
Ejaaz Khan 2025-06-26 13:00:27 +05:30
parent 0312cb7eb4
commit 4a866ca370

View file

@ -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):