Skip to content

Commit

Permalink
refactor: remove redundant check (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats authored Jun 7, 2024
1 parent fed16cc commit cf2c392
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ const getOptions = ({ optionCodes, model }) => {
has(optionCodes, 'MT') &&
!M3_NON_REFRESH.some(optionCode => has(optionCodes, optionCode))

return hasInterior
? pickedOptionCodes
: [isRefresh ? 'IBB1' : 'IN3PB'].concat(pickedOptionCodes)
return [isRefresh ? 'IBB1' : 'IN3PB'].concat(pickedOptionCodes)
}

case 'my': {
Expand Down Expand Up @@ -94,9 +92,7 @@ module.exports = ({ optionCodes, modelLetter }) => {
url.searchParams.set('model', model)
url.searchParams.set(
'options',
getOptions({ optionCodes, model })
.sort()
.toString()
getOptions({ optionCodes, model }).sort().toString()
)
url.searchParams.set('size', '800')

Expand Down

0 comments on commit cf2c392

Please sign in to comment.