Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit 96aaed0

Browse files
committed
chore(mod): not use esnext feature
1 parent 8928868 commit 96aaed0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ export default function conditionalRequests(
6767
selectRepresentation: SelectPresentationCallback,
6868
options?: Options,
6969
): Middleware {
70+
// TODO(miyauci): use toSort
7071
const preconditions = Array.from(
7172
options?.preconditions ?? defaultPreconditions,
72-
).toSorted(ascendPrecondition);
73+
).sort(ascendPrecondition);
7374

7475
return async (request, next) => {
7576
if (isNotSelectionOrModificationMethod(request.method)) {

0 commit comments

Comments
 (0)