Skip to content

Commit

Permalink
PP-13312 remove redundant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
james-peacock-gds committed Dec 18, 2024
1 parent 8dda147 commit 4f58766
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ async function post (req, res, next) {
let selectedCardTypeIds
const sanitiseToArray = value => Array.isArray(value) ? value : (value ? [value] : [])
const validations = [
body('debit').customSanitizer(sanitiseToArray),
body('credit').customSanitizer(sanitiseToArray),
body()
.custom((_, { req }) => {
selectedCardTypeIds = sanitiseToArray(req.body.debit).concat(sanitiseToArray(req.body.credit))
Expand Down

0 comments on commit 4f58766

Please sign in to comment.