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 5061dd1 commit dae568e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src-electron/main-process/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,14 +734,18 @@ async function generateSingleFile(
// Normalize the paths in options.zcl/template to search paths in database accurately
if (Array.isArray(options.zcl)) {
options.zcl.forEach((filePath, index) => {
options.zcl[index] = path.normalize(filePath)
if (filePath != null) {
options.zcl[index] = path.normalize(filePath)
}
})
} 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)
if (filePath != null) {
options.template[index] = path.normalize(filePath)
}
})
} else if (typeof options.template === 'string') {
options.template = path.normalize(options.template)
Expand Down

0 comments on commit dae568e

Please sign in to comment.