Skip to content

Commit b829fb3

Browse files
committed
Sonar fix
1 parent 87c746c commit b829fb3

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

  • src/service/mappers/formatters/human

src/service/mappers/formatters/human/v1.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,17 @@ function appendPaymentSection(formSubmissionMessage, lines) {
5050
return
5151
}
5252

53-
lines.push('---\n')
54-
lines.push('# Payment details\n')
55-
lines.push('## Payment for\n')
56-
lines.push(`${escapeContent(paymentDetails.description)}\n`)
57-
lines.push('## Total amount\n')
58-
lines.push(${paymentDetails.amount}\n`)
59-
lines.push('## Date of payment\n')
60-
lines.push(`${escapeContent(paymentDetails.dateOfPayment)}\n`)
61-
lines.push('---\n')
53+
lines.push(
54+
'---\n',
55+
'# Payment details\n',
56+
'## Payment for\n',
57+
`${escapeContent(paymentDetails.description)}\n`,
58+
'## Total amount\n',
59+
${paymentDetails.amount}\n`,
60+
'## Date of payment\n',
61+
`${escapeContent(paymentDetails.dateOfPayment)}\n`,
62+
'---\n'
63+
)
6264
}
6365

6466
/**

0 commit comments

Comments
 (0)