Skip to content

Commit

Permalink
Lint and dependency fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
  • Loading branch information
samitiilikainen authored and Nokel81 committed May 29, 2023
1 parent b7a636d commit 75beacf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/utility-features/kube-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@k8slens/kube-object": "^1.0.0-alpha.5",
"@k8slens/logger": "^1.0.0-alpha.5",
"@k8slens/utilities": "^1.0.0-alpha.1",
"@ogre-tools/fp": "^16.1.0",
"@ogre-tools/injectable": "^16.1.0",
"byline": "^5.0.0",
"lodash": "^4.17.15",
Expand Down
16 changes: 8 additions & 8 deletions packages/utility-features/kube-api/src/get-match-for.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*/
export const getMatchFor =
(...patterns: RegExp[]) =>
(reference: string) => {
for (const pattern of patterns) {
const match = reference.match(pattern);
(reference: string) => {
for (const pattern of patterns) {
const match = reference.match(pattern);

if (match) {
return match;
}
if (match) {
return match;
}
}

return undefined;
};
return undefined;
};

0 comments on commit 75beacf

Please sign in to comment.