Chore: use Bun.nanoseconds() over performance.now()

This commit is contained in:
SukkaW
2023-12-03 04:00:56 +08:00
parent d4ff4c5b2d
commit 17d69a975a
5 changed files with 20 additions and 23 deletions

View File

@@ -21,7 +21,7 @@ export async function compareAndWriteFile(linesA: string[], filePath: string) {
const lineA = linesA[index];
index++;
if (lineA === undefined) {
if (typeof lineA !== 'string') {
// The file becomes smaller
isEqual = false;
break;