Skip to content

Commit

Permalink
chore: solve code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdtK committed Nov 16, 2023
1 parent daeb341 commit 2b4ba58
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ra2ce/configuration/config_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,18 @@ def is_valid_input(self) -> bool:
logging.error("No valid network.ini file provided. Program will close.")
return False

if self.network_config and self.analysis_config:
if (
if (
self.network_config
and self.analysis_config
and (
self.analysis_config.config_data.root_path
!= self.network_config.config_data.root_path
):
logging.error(
"Root directory differs between network and analyses .ini files"
)
return False
)
):
logging.error(
"Root directory differs between network and analyses .ini files"
)
return False

return True

Expand Down

0 comments on commit 2b4ba58

Please sign in to comment.