Skip to content

Commit

Permalink
refactor: provider.interactionDetails(req, res) now requires res
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `provider.interactionDetails` now only works if both
`req` and `res` are provided.
  • Loading branch information
panva committed Mar 3, 2020
1 parent e78e573 commit 2c3a667
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ class Provider extends events.EventEmitter {
* @api public
*/
async interactionDetails(req, res) {
/* istanbul ignore if */
if (typeof res === 'undefined') { // TODO: in v7.x deprecate only req
return getInteraction.call(this, req);
}

return getInteraction.call(this, req, res);
}

Expand Down

0 comments on commit 2c3a667

Please sign in to comment.