Skip to content

Commit

Permalink
♻️ Simplify the get_source_config() util (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
trymzet authored Sep 30, 2024
1 parent 0568da1 commit 2e182de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viadot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_source_config(key: str, config: Config = CONFIG) -> dict[str, Any] | Non
if source_configs is not None:
for source_config in source_configs:
if key in source_config:
return source_configs[source_configs.index(source_config)][key]
return source_config[key]
return None


Expand Down

0 comments on commit 2e182de

Please sign in to comment.