Skip to content

Commit aa6686f

Browse files
committed
chore(index): minor simplification
1 parent a7e3259 commit aa6686f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = (api, options) => {
9999
if (args.skipBundle) {
100100
console.log('Not bundling app as --skipBundle was passed')
101101
// Build with electron-builder
102-
buildApp(args.skipElectronBuild)
102+
buildApp()
103103
} else {
104104
const bundleOutputDir = path.join(outputDir, 'bundled')
105105
// Arguments to be passed to renderer build
@@ -215,10 +215,10 @@ module.exports = (api, options) => {
215215
)
216216
log(formatStats(stats, targetDirShort, api))
217217

218-
buildApp(args.skipElectronBuild)
218+
buildApp()
219219
})
220220
} else {
221-
buildApp(args.skipElectronBuild)
221+
buildApp()
222222
}
223223
})
224224
} else {
@@ -230,11 +230,11 @@ module.exports = (api, options) => {
230230
api.resolve(mainProcessFile),
231231
api.resolve(`${outputDir}/bundled/index.js`)
232232
)
233-
buildApp(args.skipElectronBuild)
233+
buildApp()
234234
}
235235
}
236-
function buildApp (skip) {
237-
if (skip) {
236+
function buildApp () {
237+
if (args.skipElectronBuild) {
238238
console.log('Not building app as --skipElectronBuild was passed')
239239
return
240240
}

0 commit comments

Comments
 (0)