Skip to content

Commit

Permalink
Remove unecessary code for config (#64)
Browse files Browse the repository at this point in the history
This is logically equivalent
  • Loading branch information
aantn authored Jun 24, 2024
1 parent 72732bb commit 914c61c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions holmes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ def load_from_file(cls, config_file: Optional[str], **kwargs) -> "Config":
cli_options = {
k: v for k, v in kwargs.items() if v is not None and v != []
}
config_from_cli = cls(**cli_options)
if config_from_file is None:
return config_from_cli
return cls(**cli_options)

merged_config = config_from_file.dict()
Expand Down

0 comments on commit 914c61c

Please sign in to comment.