Skip to content

Commit

Permalink
Fixing no-sparse-arrays eslint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzrlk committed Apr 15, 2023
1 parent 7742845 commit cf0f63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/task/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class Task extends EventEmitter {

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

Expand Down

0 comments on commit cf0f63f

Please sign in to comment.