Fix codefactor
This commit is contained in:
parent
be5e80f2ec
commit
1fb87351a5
6
index.js
6
index.js
|
@ -11,8 +11,8 @@ const prefixName = name => `bin-${name}`;
|
|||
|
||||
const getPlatformDir = () => {
|
||||
switch (process.platform) {
|
||||
case 'win32' : return process.arch === 'x64' ? 'win64' : 'win32';
|
||||
case 'linux' : return 'linux64';
|
||||
case 'win32' : return process.arch === 'x64' ? 'win64' : 'win32';
|
||||
case 'linux' : return 'linux64';
|
||||
case 'darwin' : return 'mac64';
|
||||
default : throw new Error(`Platform "${process.platform}" is not supported.`);
|
||||
}
|
||||
|
@ -80,4 +80,6 @@ module.exports = {
|
|||
rm() { return console.log(rmPath); },
|
||||
cp() { return console.log(cpPath); },
|
||||
|
||||
download,
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue