Skip to content

Commit 0c1da11

Browse files
committed
chore(middleware): pretty comment
1 parent 13eb7cd commit 0c1da11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

middleware.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function conditionalRequest(
5959
selectRepresentation: Handler,
6060
options?: Options,
6161
): Middleware {
62-
// TODO(miyauci): use `toSort`
62+
// TODO(miyauci): use `toSort` someday
6363
const preconditions = Array.from(
6464
options?.preconditions ??
6565
[
@@ -107,8 +107,7 @@ export async function _handler(
107107
new Request(request, { headers }),
108108
);
109109

110-
/** A server MUST ignore all received preconditions if its response to the same request without those conditions, prior to processing the request content, would have been a status code other than a 2xx (Successful) or 412 (Precondition Failed).
111-
*/
110+
// A server MUST ignore all received preconditions if its response to the same request without those conditions, prior to processing the request content, would have been a status code other than a 2xx (Successful) or 412 (Precondition Failed).
112111
if (!isPreEvaluableStatus(selectedRepresentation.status)) {
113112
return next(request);
114113
}

0 commit comments

Comments
 (0)