Skip to content

Commit

Permalink
Use for..of instead of forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Dec 24, 2024
1 parent cc470d1 commit d8c7020
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ export class StateStore {

for (let name of cookie.names()) {
if (name.startsWith(cookieName)) {
// biome-ignore lint/complexity/noForEach: This is ok
new URLSearchParams(cookie.get(name))
.entries()
.forEach(([key, value]) => params.append(key, value));
for (let [key, value] of new URLSearchParams(cookie.get(name))) {
params.append(key, value);
}
}
}

Expand Down

0 comments on commit d8c7020

Please sign in to comment.