Skip to content

Commit 6c2fcf8

Browse files
committed
Fix SonarQube Cloud issue
1 parent 2992309 commit 6c2fcf8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/src/app/getCookie.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export const getCookie = (cookieName: string) => {
22
const name = `${cookieName}=`;
33
const decodedCookie = decodeURIComponent(document.cookie);
44
const ca = decodedCookie.split(";");
5-
for (let c of ca) {
5+
for (let i of ca) {
6+
let c = i;
67
while (c.startsWith(" ")) {
78
c = c.substring(1);
89
}

0 commit comments

Comments
 (0)