From 0299ff41ad6a6d75587a16e1149f1a32aae2dc99 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Mon, 15 Apr 2024 22:44:48 +0800 Subject: [PATCH] style: remove unused import --- src/common/utils/file.ts | 1 - src/common/utils/helper.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/common/utils/file.ts b/src/common/utils/file.ts index bc777a31..a92185f5 100644 --- a/src/common/utils/file.ts +++ b/src/common/utils/file.ts @@ -8,7 +8,6 @@ import { dbUtil } from './db'; import * as fileType from 'file-type'; import { v4 as uuidv4 } from 'uuid'; import { napCatCore } from '@/core'; -import os from 'node:os'; export const getNapCatDir = () => { const p = path.join(napCatCore.wrapper.dataPath, 'NapCat'); diff --git a/src/common/utils/helper.ts b/src/common/utils/helper.ts index 2142f6b6..b0084a9a 100644 --- a/src/common/utils/helper.ts +++ b/src/common/utils/helper.ts @@ -1,5 +1,4 @@ import crypto from 'node:crypto'; -import { resolve } from 'dns'; export function sleep(ms: number): Promise { return new Promise(resolve => setTimeout(resolve, ms));