Skip to content

Commit de541db

Browse files
committed
regression from change regarding the init default @bholloway, minor style change on else.
1 parent c3211c6 commit de541db

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tasks/webstorm.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ gulp.task('webstorm', function (done) {
119119

120120
// Find the yargs instance that is most appropriate for the given command line parameters
121121
cliArgs = validateLaunchPath(yargs.resolveArgv());
122-
if (cliArgs.taskName === 'init') {
123-
cliArgs = config.get(); // default arguments when called by the "init" task
124-
}
122+
123+
cliArgs = config.get();
125124

126125
// set defaults
127126
if (cliArgs.defaults) {
@@ -132,9 +131,8 @@ gulp.task('webstorm', function (done) {
132131
});
133132
gutil.log('wrote file ' + config.commit());
134133
}
135-
136-
// else run the selected items
137134
else {
135+
// else run the selected items
138136
var taskList = [
139137
cliArgs.subdir && 'webstorm:subdir',
140138
cliArgs.project && 'webstorm:project',

0 commit comments

Comments
 (0)