From e77bb26492adc6d4a886324cedd6781556af67da Mon Sep 17 00:00:00 2001 From: George Date: Thu, 16 Jan 2025 10:06:55 -0800 Subject: [PATCH] Fix eslint whining --- src/scval.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scval.js b/src/scval.js index 725ab004..259192c0 100644 --- a/src/scval.js +++ b/src/scval.js @@ -379,14 +379,14 @@ export function scValToNative(scv) { /// Inject a sortable map builder into the xdr module. xdr.scvSortedMap = (items) => { - let sorted = Array.from(items).sort((a, b) => { + const sorted = Array.from(items).sort((a, b) => { // Both a and b are `ScMapEntry`s, so we need to sort by underlying key. // // We couldn't possibly handle every combination of keys since Soroban // maps don't enforce consistent types, so we do a best-effort and try // sorting by "number-like" or "string-like." - let nativeA = scValToNative(a.key()), - nativeB = scValToNative(b.key()); + const nativeA = scValToNative(a.key()); + const nativeB = scValToNative(b.key()); switch (typeof nativeA) { case 'number':