refactor(report): simplify check further

NoneType will evaluate to False here so we don't need this complexity

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Akhil Narang 2023-11-23 15:54:13 +05:30 committed by GitHub
parent fbc88a4d24
commit f8c5a61bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ class Report(Document):
if frappe.flags.in_import:
return
if self.is_standard == "Yes" and (frappe.local.conf.get("developer_mode", 0) == 1):
if self.is_standard == "Yes" and frappe.conf.developer_mode:
export_to_files(
record_list=[["Report", self.name]], record_module=self.module, create_init=True
)