Skip to content

Commit 9e07cdc

Browse files
Update auth-oidc-proxy/auth/index.mjs
Co-authored-by: Sascha Schwarze <schwarzs@de.ibm.com>
1 parent 7b5c9bb commit 9e07cdc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

auth-oidc-proxy/auth/index.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,9 @@ function parseAllowlist(listAsStr) {
7070
if (!listAsStr) {
7171
return [];
7272
}
73-
const strArr = listAsStr.split(",");
74-
strArr.forEach((element, index) => {
75-
strArr[index] = element.trim();
76-
});
77-
78-
return strArr;
73+
return listAsStr
74+
.split(",")
75+
.map((item) => item.trim());
7976
}
8077

8178
// =================================================

0 commit comments

Comments
 (0)