From cc76dfab997c568a5b969dcc0c1019bff97efedf Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Wed, 21 Sep 2022 15:14:01 +0300 Subject: [PATCH] format --- src/authutil.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/authutil.ts b/src/authutil.ts index 486f40f..d33c77b 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -86,16 +86,12 @@ function writeFeedToFile( core.debug(`Found a URL with key ${key}`); } }); - } else { - if ( - packageSources['@_value'] - .toLowerCase() - .includes(feedUrl.toLowerCase()) - ) { - const key = packageSources['@_key']; - sourceKeys.push(key); - core.debug(`Found a URL with key ${key}`); - } + } else if ( + packageSources['@_value'].toLowerCase().includes(feedUrl.toLowerCase()) + ) { + const key = packageSources['@_key']; + sourceKeys.push(key); + core.debug(`Found a URL with key ${key}`); } } }