Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brdandu committed Oct 21, 2024
1 parent 74ab6d9 commit 28f1948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-electron/main-process/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,14 +736,14 @@ async function generateSingleFile(
options.zcl.forEach((filePath, index) => {
options.zcl[index] = path.normalize(filePath)
})
} else {
} else if (typeof options.zcl === 'string') {
options.zcl = path.normalize(options.zcl)
}
if (Array.isArray(options.template)) {
options.template.forEach((filePath, index) => {
options.template[index] = path.normalize(filePath)
})
} else {
} else if (typeof options.template === 'string') {
options.template = path.normalize(options.template)
}

Expand Down

0 comments on commit 28f1948

Please sign in to comment.