Skip to content

Commit 360222a

Browse files
committed
fix(decorator): use [] instead of new Array() to initialize prompts (jsHint)
1 parent 13bce32 commit 360222a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decorator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Generator.prototype.askForNewName = function askForNewName() {
4747
return;
4848
}
4949
else {
50-
var prompts = new Array();
50+
var prompts = [];
5151
prompts.push({
5252
name : 'decortatorName',
5353
message: 'Alternative name for the decorator:'

0 commit comments

Comments
 (0)