From 1fb87351a5b991c6c0d9b94124f13b44f7d74657 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sat, 2 Mar 2019 15:16:36 +0300 Subject: [PATCH] Fix codefactor --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 194cacf..803b62a 100644 --- a/index.js +++ b/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, + };