Skip to content

Commit

Permalink
refactor: less word do trick
Browse files Browse the repository at this point in the history
Co-authored-by: Chinmay Pai <[email protected]>
  • Loading branch information
gavindsouza and Thunderbottom committed Jul 17, 2020
1 parent e92a612 commit c87d598
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frappe/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ def get_logger(module, with_more_info=False, _site=None):
global site

def allow_site():
allow = False
if site: allow = True
if _site: allow = site == _site
return allow
return (_site and _site == site) or bool(site)

if module in frappe.loggers:
return frappe.loggers[module]
Expand Down

0 comments on commit c87d598

Please sign in to comment.