Lint and dependency fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
Sami Tiilikainen authored and Sebastian Malton committed 2023-05-29 09:38:24 -04:00
1 parent b7a636dd74
commit 75beacfa7c
3 files changed
+10 -8

No files matched your search

+1
View File
@@ -35694,6 +35694,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",
@@ -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",
@@ -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;
};