Skip to content

Commit 2767207

Browse files
committed
Use const
1 parent 7049188 commit 2767207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jinja/src/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class ObjectValue extends RuntimeValue<Map<string, AnyRuntimeValue>> {
365365
// This is only an potential issue when `by='value'` and the dictionary has mixed value types
366366
const isPrimitive = (val: unknown) =>
367367
typeof val === "string" || typeof val === "number" || typeof val === "boolean";
368-
let firstNonPrimitive = isPrimitive(aValue) ? (isPrimitive(bValue) ? null : bValue) : aValue;
368+
const firstNonPrimitive = isPrimitive(aValue) ? (isPrimitive(bValue) ? null : bValue) : aValue;
369369
if (firstNonPrimitive !== null) {
370370
throw new Error(
371371
`Cannot sort dictionary with non-primitive value types (found ${typeof firstNonPrimitive})`

0 commit comments

Comments
 (0)