Skip to content

Commit

Permalink
Fix lint errors from previously-untested files
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Dec 12, 2023
1 parent fc92cde commit 93a3f11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { useState, MouseEventHandler } from "react";

import { Routes, Route, Navigate } from "react-router-dom";
import { Routes, Route } from "react-router-dom";
import { Helmet } from "react-helmet";

import AppBar from "./components/AppBar";
Expand All @@ -18,7 +18,7 @@ import "./App.css";

type AppProps = {
darkMode: boolean;
toggleDarkMode: Function;
toggleDarkMode: MouseEventHandler<HTMLElement>;
};

function App(props: AppProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/paddles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function useStatsNodeLocks(params: GetURLParams): UseQueryResult<StatsLocksRespo
const query = useQuery(["statsLocks", { url }], {
select: (data: Node[]) => {
let users = new Map();
data.map((node) => {
data.forEach((node) => {
let owner: string = node["locked"] ? (node["locked_by"] || "-") : "(free)";
let mtype: string = node["machine_type"] || "None";
let mtype_dict = users.get(owner) || new Map();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/teuthologyAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function useUserData(): Map<string, string> {
const cookie_ = cookie.replace(/\\073/g, ';');
let cookieMap: Map<string, string> = new Map();
let cookieSegments = cookie_.split(";");
cookieSegments.map((cookie: string) => {
cookieSegments.forEach((cookie: string) => {
let [key, value] = cookie.split("=");
cookieMap.set(key.trim(), value.trim());
})
Expand Down

0 comments on commit 93a3f11

Please sign in to comment.