Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Aug 20, 2024
1 parent 1c670b0 commit 8e815cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function isUserAuthorized(event: RequestEvent<Partial<Record<string, string>>, s
return false
}

for (let endpoint of ADMIN_SPECIFIC_ENDPOINTS) {
for (const endpoint of ADMIN_SPECIFIC_ENDPOINTS) {
if (!user.is_admin && event.request.url.match(endpoint.path) && event.request.method === endpoint.method) {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/dsm/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function indexForNewItemInSortedList<T>(list: string[], item: string) {
export function indexForNewItemInSortedList(list: string[], item: string) {
let left = 0
let right = list.length - 1

Expand Down

0 comments on commit 8e815cc

Please sign in to comment.