mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-09 08:30:15 +00:00
Rename variable which mirrors the function name
This commit is contained in:
parent
bdc8c46362
commit
9bcb1a81d9
10
index.js
10
index.js
@ -11,7 +11,7 @@ var linux = require('./linux.js')
|
||||
var win32 = require('./win32.js')
|
||||
|
||||
module.exports = function packager (opts, cb) {
|
||||
var packager
|
||||
var platformPackager
|
||||
var platform = opts.platform
|
||||
var arch = opts.arch
|
||||
var version = opts.version
|
||||
@ -25,9 +25,9 @@ module.exports = function packager (opts, cb) {
|
||||
}
|
||||
|
||||
switch (platform) {
|
||||
case 'darwin': packager = mac; break
|
||||
case 'linux': packager = linux; break
|
||||
case 'win32': packager = win32; break
|
||||
case 'darwin': platformPackager = mac; break
|
||||
case 'linux': platformPackager = linux; break
|
||||
case 'win32': platformPackager = win32; break
|
||||
default: return cb(new Error('Unsupported platform. Must be either darwin, linux, or win32'))
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ module.exports = function packager (opts, cb) {
|
||||
if (err) return cb(err)
|
||||
extract(zipPath, {dir: tmpDir}, function (err) {
|
||||
if (err) return cb(err)
|
||||
packager.createApp(opts, tmpDir, cb)
|
||||
platformPackager.createApp(opts, tmpDir, cb)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user