Skip to content

Commit e437f55

Browse files
committed
chore: lint
1 parent 2e472e8 commit e437f55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/utils/body.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ export function readRawBody<E extends Encoding = "utf8">(
3030
(event.node.req as any)[RawBodySymbol] ||
3131
(event.node.req as any).body; /* unjs/unenv #8 */
3232
if (_rawBody) {
33-
const promise = Promise.resolve(_rawBody)
34-
.then(_resolved => Buffer.isBuffer(_resolved) ? _resolved : Buffer.from(_resolved))
33+
const promise = Promise.resolve(_rawBody).then((_resolved) =>
34+
Buffer.isBuffer(_resolved) ? _resolved : Buffer.from(_resolved)
35+
);
3536
return encoding
3637
? promise.then((buff) => buff.toString(encoding))
3738
: (promise as Promise<any>);

0 commit comments

Comments
 (0)