Skip to content

Commit

Permalink
Make prettier happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 20, 2024
1 parent 6d2a350 commit 86f1d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class Route {

const hasGet = suggestions.includes('GET');
if (suggestions.includes('POST') === true && hasGet === false) return 'POST';
return hasGet === true ? 'GET' : suggestions[0] ?? 'GET';
return hasGet === true ? 'GET' : (suggestions[0] ?? 'GET');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/server/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ServerRequest extends Body {
const url = (this.url = options.url ?? null);

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

this.isWebSocket = options.isWebSocket;
this.isSecure = options.isSecure;
Expand Down

0 comments on commit 86f1d47

Please sign in to comment.