Skip to content

Commit cf0f63f

Browse files
committed
Fixing no-sparse-arrays eslint error.
1 parent 7742845 commit cf0f63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/task/task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class Task extends EventEmitter {
420420

421421
_getParams() {
422422
if (!this.action) return "";
423-
let params = (new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, '')) || [,''])[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
423+
let params = (new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, '')) || [''])[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
424424
return params;
425425
}
426426

0 commit comments

Comments
 (0)