Skip to content

Commit 86f1d47

Browse files
committed
Make prettier happy
1 parent 6d2a350 commit 86f1d47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/router/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class Route {
249249

250250
const hasGet = suggestions.includes('GET');
251251
if (suggestions.includes('POST') === true && hasGet === false) return 'POST';
252-
return hasGet === true ? 'GET' : suggestions[0] ?? 'GET';
252+
return hasGet === true ? 'GET' : (suggestions[0] ?? 'GET');
253253
}
254254

255255
/**

src/server/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class ServerRequest extends Body {
6363
const url = (this.url = options.url ?? null);
6464

6565
const pathMatch = (url ?? '').match(URL_RE);
66-
this.path = pathMatch === null ? '' : decodeURIComponentSafe(pathMatch[5]) ?? '';
66+
this.path = pathMatch === null ? '' : (decodeURIComponentSafe(pathMatch[5]) ?? '');
6767

6868
this.isWebSocket = options.isWebSocket;
6969
this.isSecure = options.isSecure;

0 commit comments

Comments
 (0)