Skip to content

Commit

Permalink
lint: remove unused parameter from internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
raksbisht authored and neohotsauce committed May 4, 2023
1 parent 812a200 commit 0876eaa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/utils.js
Expand Up @@ -117,17 +117,15 @@ exports.contentDisposition = deprecate.function(contentDisposition,
/**
* Parse accept params `str` returning an
* object with `.value`, `.quality` and `.params`.
* also includes `.originalIndex` for stable sorting
*
* @param {String} str
* @param {Number} index
* @return {Object}
* @api private
*/

function acceptParams(str, index) {
function acceptParams (str) {
var parts = str.split(/ *; */);
var ret = { value: parts[0], quality: 1, params: {}, originalIndex: index };
var ret = { value: parts[0], quality: 1, params: {} }

for (var i = 1; i < parts.length; ++i) {
var pms = parts[i].split(/ *= */);
Expand Down

0 comments on commit 0876eaa

Please sign in to comment.