refactor(server/utils): isMac/isWin - replace fn with boolean

those values cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
This commit is contained in:
Panagiotis Papadopoulos
2025-01-22 18:42:42 +01:00
parent 7c28b93477
commit 94411cf418
5 changed files with 8 additions and 11 deletions

View File

@@ -321,11 +321,9 @@ export function getResourceDir() {
}
}
export function isMac() {
return process.platform === "darwin";
}
export const isMac = process.platform === "darwin";
export function isWindows() {
export const isWindows = process.platform === "win32";
return process.platform === "win32";
}