Skip to content

Commit

Permalink
chore(index): minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
nklayman committed Jan 3, 2022
1 parent a7e3259 commit aa6686f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = (api, options) => {
if (args.skipBundle) {
console.log('Not bundling app as --skipBundle was passed')
// Build with electron-builder
buildApp(args.skipElectronBuild)
buildApp()
} else {
const bundleOutputDir = path.join(outputDir, 'bundled')
// Arguments to be passed to renderer build
Expand Down Expand Up @@ -215,10 +215,10 @@ module.exports = (api, options) => {
)
log(formatStats(stats, targetDirShort, api))

buildApp(args.skipElectronBuild)
buildApp()
})
} else {
buildApp(args.skipElectronBuild)
buildApp()
}
})
} else {
Expand All @@ -230,11 +230,11 @@ module.exports = (api, options) => {
api.resolve(mainProcessFile),
api.resolve(`${outputDir}/bundled/index.js`)
)
buildApp(args.skipElectronBuild)
buildApp()
}
}
function buildApp (skip) {
if (skip) {
function buildApp () {
if (args.skipElectronBuild) {
console.log('Not building app as --skipElectronBuild was passed')
return
}
Expand Down

0 comments on commit aa6686f

Please sign in to comment.