perf: 去掉沒使用過的timeout

This commit is contained in:
2025-01-27 17:10:40 +08:00
parent 0f9407dc31
commit 12b64737a8
2 changed files with 0 additions and 7 deletions

View File

@@ -2,7 +2,6 @@ import fs from 'fs'
import got, {HTTPError, Options} from 'got'
import YAML from 'yaml'
import {timeout} from './util.js'
import {IrequestData} from './types.js'
const path: string = YAML.parse(fs.readFileSync('../config.yml', 'utf-8')).path

View File

@@ -1,6 +0,0 @@
export function timeout(ms: number): Promise<unknown> {
return new Promise((resolve, reject) => {
setTimeout(resolve, ms)
})
}