From 4a7c2237efc95e5800e7fa1f7063c2d00880887c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Wed, 17 Jul 2024 18:24:53 -0600 Subject: [PATCH] Small refactor --- singer_sdk/metrics.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/singer_sdk/metrics.py b/singer_sdk/metrics.py index 2f38c6f04..460aa3c51 100644 --- a/singer_sdk/metrics.py +++ b/singer_sdk/metrics.py @@ -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: