Skip to content

Commit

Permalink
Simplify further
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jul 27, 2024
1 parent cbf4cec commit 97d2044
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/types/urlencoded.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function urlencoded (options) {

function parse (body, encoding) {
return body.length
? queryparse(body, undefined, encoding)
? queryparse(body, encoding)
: {}
}

Expand Down Expand Up @@ -144,7 +144,7 @@ function createQueryParser (options, extended) {

var depth = extended ? Infinity : 0

return function queryparse (body, decoder, encoding) {
return function queryparse (body, encoding) {
var paramCount = parameterCount(body, parameterLimit)

if (paramCount === undefined) {
Expand All @@ -163,7 +163,6 @@ function createQueryParser (options, extended) {
arrayLimit: arrayLimit,
depth: depth,
parameterLimit: parameterLimit,
decoder: decoder,
charsetSentinel: charsetSentinel,
interpretNumericEntities: interpretNumericEntities,
charset: encoding
Expand Down

0 comments on commit 97d2044

Please sign in to comment.