Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove needless typeguard
  • Loading branch information
yukukotani committed Aug 7, 2023
commit 76b0df674da9499660e1b72eb41a05dbfefaf1e3
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const checkPlatform = (target, force = false, environment = {}) => {
return
}

const platform = environment && environment.os ? environment.os : process.platform
const arch = environment && environment.cpu ? environment.cpu : process.arch
const platform = environment.os || process.platform
const arch = environment.cpu || process.arch
const osOk = target.os ? checkList(platform, target.os) : true
const cpuOk = target.cpu ? checkList(arch, target.cpu) : true

Expand Down