From bb7f93145d4db5e6c002f8687d37fc0523455540 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 15 May 2021 13:16:06 +0700 Subject: [PATCH] Fix linting --- index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index b7dc6b0..5d9fba1 100644 --- a/index.js +++ b/index.js @@ -2,15 +2,15 @@ module.exports = options => { if (process.platform === 'darwin') { - return require('./lib/macos')(options); + return require('./lib/macos.js')(options); } if (process.platform === 'linux') { - return require('./lib/linux')(options); + return require('./lib/linux.js')(options); } if (process.platform === 'win32') { - return require('./lib/windows')(options); + return require('./lib/windows.js')(options); } return Promise.reject(new Error('macOS, Linux, and Windows only')); @@ -18,15 +18,15 @@ module.exports = options => { module.exports.sync = options => { if (process.platform === 'darwin') { - return require('./lib/macos').sync(options); + return require('./lib/macos.js').sync(options); } if (process.platform === 'linux') { - return require('./lib/linux').sync(options); + return require('./lib/linux.js').sync(options); } if (process.platform === 'win32') { - return require('./lib/windows').sync(options); + return require('./lib/windows.js').sync(options); } throw new Error('macOS, Linux, and Windows only');