Skip to content

Commit 87a9343

Browse files
committed
format
1 parent 2bb9b70 commit 87a9343

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/runtime/validator.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ async function validateBody(
188188
logger: CustomLogger
189189
): Promise<unknown> {
190190
const body = req.body
191-
const contentType = (req.headers['content-type'] ?? 'application/json').split(
192-
';'
193-
)[0]
191+
const contentType = (req.headers['content-type'] ?? 'application/json').split(';')[0]
194192

195193
const expectedSchema = rule.content[contentType]?.schema
196194
if (typeof expectedSchema === 'undefined') {
@@ -199,7 +197,7 @@ async function validateBody(
199197
}
200198

201199
if (req.readableEnded === false) {
202-
logger.debug(`! Warning: Body has not be parsed, body validation skipped !`)
200+
logger.debug(`Body has not be parsed, body validation skipped!`)
203201
return body
204202
}
205203

0 commit comments

Comments
 (0)