Fix codefactor

This commit is contained in:
Luis Blanco 2019-03-02 15:16:36 +03:00
parent be5e80f2ec
commit 1fb87351a5
1 changed files with 4 additions and 2 deletions

View File

@ -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,
};