Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

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

+1-1
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)