Skip to content

Commit a1efd9d

Browse files
raksbishtdougwilson
authored andcommitted
lint: remove unused parameter from internal function
coses #5119
1 parent c6ee8d6 commit a1efd9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/utils.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,15 @@ exports.contentDisposition = deprecate.function(contentDisposition,
117117
/**
118118
* Parse accept params `str` returning an
119119
* object with `.value`, `.quality` and `.params`.
120-
* also includes `.originalIndex` for stable sorting
121120
*
122121
* @param {String} str
123-
* @param {Number} index
124122
* @return {Object}
125123
* @api private
126124
*/
127125

128-
function acceptParams(str, index) {
126+
function acceptParams (str) {
129127
var parts = str.split(/ *; */);
130-
var ret = { value: parts[0], quality: 1, params: {}, originalIndex: index };
128+
var ret = { value: parts[0], quality: 1, params: {} }
131129

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

0 commit comments

Comments
 (0)