refactor: fix eslint no-useless-assignment preserve-caught-error (#6276)

This commit is contained in:
Sline
2026-02-08 05:19:41 +00:00
committed by GitHub
parent cad1c983e1
commit 7730cd1c5b
5 changed files with 12 additions and 17 deletions
+1 -6
View File
@@ -107,10 +107,7 @@ export function TrafficGraph({ ref }: { ref?: Ref<TrafficRef> }) {
countY(y),
]);
let x = points[0][0];
let y = points[0][1];
context.moveTo(x, y);
context.moveTo(points[0][0], points[0][1]);
for (let i = 1; i < points.length; i++) {
const p1 = points[i];
@@ -120,8 +117,6 @@ export function TrafficGraph({ ref }: { ref?: Ref<TrafficRef> }) {
const y1 = (p1[1] + p2[1]) / 2;
context.quadraticCurveTo(p1[0], p1[1], x1, y1);
x = x1;
y = y1;
}
};
@@ -141,7 +141,7 @@ export const ProxiesEditorViewer = (props: Props) => {
const handleParseAsync = (cb: (proxies: IProxyConfig[]) => void) => {
const proxies: IProxyConfig[] = [];
const names: string[] = [];
let uris = "";
let uris: string;
try {
uris = atob(proxyUri);
} catch {