Skip to content

Commit

Permalink
Fix ts err
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaskay committed Dec 19, 2023
1 parent bd0a1c6 commit 0c8981b
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 130 deletions.
3 changes: 1 addition & 2 deletions src/utils/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export const uid = (): string => {
// getuid only available on POSIX
// and it's not needed on windows anyway
if (platform() !== "win32") {
// @ts-ignore
uid = process.getuid()
uid = process?.getuid?.() ?? 0
}
return uid.toString()
}

0 comments on commit 0c8981b

Please sign in to comment.