Skip to content

Commit 115709e

Browse files
fix: remove extra ternary operator
1 parent 2d21bae commit 115709e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/generators/init-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class InitGenerator extends Generator {
109109
if (entryOption.length === 0) {
110110
this.usingDefaults = true;
111111
} else if (entryOption.length > 0) {
112-
this.usingDefaults = entryOption && entryOption === "'./src/index.js'" ? true : false;
112+
this.usingDefaults = entryOption && entryOption === "'./src/index.js'";
113113
if (!this.usingDefaults) {
114114
this.configuration.config.webpackOptions.entry = `${entryOption}`;
115115
}

0 commit comments

Comments
 (0)