Skip to content

Commit 459103c

Browse files
committed
Fix linter issues
1 parent 1c0c47f commit 459103c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/herbie/HerbieUI.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function HerbieUIInner() {
272272

273273
const fileKey = Object.keys(response.data.files)[0];
274274

275-
if (fileKey.length === 0) throw new Error("No files found in Gist.");
275+
if (fileKey.length === 0) {throw new Error("No files found in Gist.");}
276276

277277
const rawUrl = response.data.files[fileKey].raw_url;
278278

@@ -336,7 +336,7 @@ function HerbieUIInner() {
336336

337337
const gistId = queryParams.get('gist');
338338

339-
if (gistId != null) {
339+
if (gistId !== null) {
340340
loadSpecFromGist(gistId);
341341
}
342342
}
@@ -404,7 +404,7 @@ function HerbieUIInner() {
404404

405405
const json_url = queryParams.get('json_url');
406406

407-
if (json_url != null) {
407+
if (json_url !== null) {
408408
loadStateFromURLInner(json_url);
409409
}
410410
}

0 commit comments

Comments
 (0)