Skip to content

Commit

Permalink
remove unneeded .exists() check
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Mar 22, 2024
1 parent f6f2631 commit 515fd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion organize/find_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def find_default_config() -> Path:
# if the `ORGANIZE_CONFIG` env variable is set we only check this specific location
if ENV_ORGANIZE_CONFIG is not None:
result = expandvars(ENV_ORGANIZE_CONFIG)
if result.exists() and result.is_file():
if result.is_file():
return result
raise ConfigNotFound(str(result))

Expand Down

0 comments on commit 515fd62

Please sign in to comment.