Skip to content

Commit

Permalink
refactor: optional chaining instead of expression in parser.js (#1277)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
rishabhr4 and derberg authored Oct 8, 2024
1 parent 5c28787 commit a3460a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator/lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function convertOldOptionsToNew(oldOptions, generator) {
}

const resolvers = [];
if (generator && generator.mapBaseUrlToFolder && generator.mapBaseUrlToFolder.url) {
if (generator?.mapBaseUrlToFolder?.url) {
resolvers.push(...getMapBaseUrlToFolderResolvers(generator.mapBaseUrlToFolder));
}
if (oldOptions.resolve) {
Expand Down

0 comments on commit a3460a5

Please sign in to comment.