Skip to content

Commit

Permalink
🎨 修复eslint错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Dec 9, 2024
1 parent bc9e348 commit 6e824d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/algorithm/random.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export namespace Random {
* @param lambda 泊松分布参数
*/
export function poissonRandom(lambda: number): number {
let L = Math.exp(-lambda);
const L = Math.exp(-lambda);
let p = 1.0;
let k = 0;
do {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export namespace StageNodeTextTransfer {
}, 1000);
} catch (e) {
node.rename("Error");
console.error(e);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ const onSaveSelectedNew = async () => {
path,
content: JSON.stringify(data, null, 2),
})
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.then((_) => {
Stage.effects.push(new ViewFlashEffect(Color.Black));
})
Expand Down Expand Up @@ -474,6 +475,7 @@ async function openBrowserOrFile() {

function myOpen(url: string) {
open(url)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.then((_) => {})
.catch((e) => {
// 依然会导致程序崩溃,具体原因未知
Expand Down

0 comments on commit 6e824d7

Please sign in to comment.