Skip to content

Commit e2ad3e5

Browse files
committed
Fix linter errors
1 parent 1d8c14f commit e2ad3e5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/webview/judge/Testcase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Testcase = observer(function Testcase({ id, testcase$ }: Props) {
6363
const handleRun = useCallback(() => {
6464
newStdin$.set("");
6565
handleAction(Action.RUN);
66-
}, [handleAction]);
66+
}, [handleAction, newStdin$]);
6767

6868
const handleEdit = useCallback(() => handleAction(Action.EDIT), [handleAction]);
6969
const handleDelete = useCallback(() => handleAction(Action.DELETE), [handleAction]);

src/webview/stress/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const state$ = observable({
3131

3232
const expand = (id: number) => postProviderMessage({ type: ProviderMessageType.VIEW, id });
3333
const add = (id: number) => postProviderMessage({ type: ProviderMessageType.ADD, id });
34-
const clear = () => postProviderMessage({ type: ProviderMessageType.CLEAR });
3534

3635
window.addEventListener("message", (event: MessageEvent<WebviewMessage>) => {
3736
switch (event.data.type) {

src/webview/stress/State.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Observable } from "@legendapp/state";
2-
import { observer, Memo } from "@legendapp/state/react";
2+
import { observer } from "@legendapp/state/react";
33
import { useCallback } from "react";
44

55
import { Status } from "~shared/enums";
@@ -102,7 +102,7 @@ const State = observer(function State({ state$, id, onView, onAdd }: Props) {
102102
);
103103
case Status.WA:
104104
case Status.RE:
105-
case Status.TL:
105+
case Status.TL: {
106106
const statusText =
107107
status === Status.WA
108108
? "Wrong Answer"
@@ -142,6 +142,7 @@ const State = observer(function State({ state$, id, onView, onAdd }: Props) {
142142
/>
143143
</div>
144144
);
145+
}
145146
default:
146147
return (
147148
<div className="state-container">

0 commit comments

Comments
 (0)