From 1b41b827452d93880ae144df9cb8d827949cfa42 Mon Sep 17 00:00:00 2001 From: Tau Date: Sun, 3 Nov 2019 15:58:59 -0500 Subject: [PATCH] Tiny cosmetic change --- src/chunithm/handler/getUserItem.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chunithm/handler/getUserItem.ts b/src/chunithm/handler/getUserItem.ts index 5280947..294edc2 100644 --- a/src/chunithm/handler/getUserItem.ts +++ b/src/chunithm/handler/getUserItem.ts @@ -47,15 +47,14 @@ export default async function getUserItem( // Pack the next pagination cookie into bigint compound form - const compoundOut = - itemKindN * itemKindMul + BigInt(maxCount + items.length); + const xout = itemKindN * itemKindMul + BigInt(maxCount + items.length); // Done: return { userId: req.userId, length: items.length.toString(), - nextIndex: items.length < maxCount ? "-1" : compoundOut.toString(), + nextIndex: items.length < maxCount ? "-1" : xout.toString(), itemKind: itemKind.toString(), userItemList: items.map(writeUserItem), };