Skip to content

Commit

Permalink
Simplified InstanceConfig constructor as per PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Jan 26, 2022
1 parent 057d18f commit 183afe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securedrop/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,9 +895,9 @@ def copy(self) -> "InstanceConfig":
return new

@classmethod
def get_default(cls, refresh: Optional[bool] = False) -> "InstanceConfig":
def get_default(cls, refresh: bool = False) -> "InstanceConfig":
global _default_instance_config
if (_default_instance_config is None) or (refresh is not None and refresh is True):
if (_default_instance_config is None) or (refresh is True):
_default_instance_config = InstanceConfig.get_current()
return _default_instance_config

Expand Down

0 comments on commit 183afe8

Please sign in to comment.