Skip to content

Commit

Permalink
Fix callback assertion. (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jun 24, 2021
1 parent 8221b78 commit 36c6feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ class Environment extends Base {
* @param {Object} [options]
*/
async run(args, options, done) {
if (done === 'function' || typeof options === 'function' || typeof args === 'function') {
if (done || typeof options === 'function' || typeof args === 'function') {
throw new Error('Callback support have been removed.');
}

Expand Down

0 comments on commit 36c6feb

Please sign in to comment.