Remove unnecessary nullish coalescing (#12058)

This commit is contained in:
woxtu
2023-10-18 09:54:18 +09:00
committed by GitHub
parent 53099cad5a
commit 0bddd0ceae
12 changed files with 19 additions and 20 deletions

View File

@@ -108,6 +108,5 @@ async function net() {
// FS STAT
async function fs() {
const data = await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 }));
return data ?? { rIO_sec: 0, wIO_sec: 0 };
return await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 }));
}