mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 04:21:53 +08:00
Chore: use Bun.nanoseconds() over performance.now()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user