Skip to content

Commit

Permalink
fix: old eslint did not like destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Aug 31, 2024
1 parent 45e5429 commit 251627c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ Negotiator.prototype.encoding = function encoding(available, opts) {
return set && set[0];
};

Negotiator.prototype.encodings = function encodings(available, { preferred } = {}) {
return preferredEncodings(this.request.headers['accept-encoding'], available, preferred);
Negotiator.prototype.encodings = function encodings(available, options) {
opts = options || {};
return preferredEncodings(this.request.headers['accept-encoding'], available, opts.preferred);
};

Negotiator.prototype.language = function language(available) {
Expand Down

0 comments on commit 251627c

Please sign in to comment.