Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 18, 2024
1 parent 9d0942a commit 4a7c223
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions singer_sdk/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,7 @@ def _get_default_config_path() -> Traversable:
"""
filename = "default_logging.yml"
path = get_package_files(__package__) / filename
if path.is_file():
return path

return get_package_files("singer_sdk").joinpath( # pragma: no cover
"default_logging.yml"
)
return path if path.is_file() else get_package_files("singer_sdk") / filename


def _setup_logging(config: t.Mapping[str, t.Any]) -> None:
Expand Down

0 comments on commit 4a7c223

Please sign in to comment.