Skip to content

Commit

Permalink
[Fix] fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aks- committed Jan 27, 2024
1 parent 04cad29 commit e96bff8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var has = Object.prototype.hasOwnProperty;
var isArray = Array.isArray;

var defaults = {
allowEmptyArrays: false,
allowDots: false,
allowEmptyArrays: false,
allowPrototypes: false,
Expand Down Expand Up @@ -223,7 +222,6 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;

return {
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? opts.allowEmptyArrays : defaults.allowEmptyArrays,
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
Expand Down
2 changes: 0 additions & 2 deletions lib/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ var toISO = Date.prototype.toISOString;

var defaultFormat = formats['default'];
var defaults = {
allowEmptyArrays: false,
addQueryPrefix: false,
allowDots: false,
allowEmptyArrays: false,
Expand Down Expand Up @@ -240,7 +239,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
}

return {
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? opts.allowEmptyArrays : defaults.allowEmptyArrays,
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
Expand Down

0 comments on commit e96bff8

Please sign in to comment.