From 78eda1d0e5b15947d11c81327fc0cb09366db7d5 Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Thu, 22 Feb 2024 13:43:23 +0900 Subject: [PATCH] fix: style --- src/internal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal.ts b/src/internal.ts index 57b676e..93482ef 100644 --- a/src/internal.ts +++ b/src/internal.ts @@ -22,10 +22,10 @@ export default class Internal { async handleRequest(req: Request, cost: number, status: RESPONSE_STATUS, responseData: string) { const { requesterAddress, requestKey, appName } = this.getDataFromServiceRequest(req); - const ops:SetOperation[] = []; + const ops: SetOperation[] = []; const responseOp = getResponseOp(appName, requesterAddress, requestKey, status, responseData, cost); ops.push(responseOp); - if(cost > 0) { + if (cost > 0) { const changeBalanceOp = getChangeBalanceOp(appName, requesterAddress, 'DEC_VALUE', cost); const writeHistoryOp = getWriteHistoryOp(appName, requesterAddress, HISTORY_TYPE.USAGE, cost, requestKey); ops.push(changeBalanceOp);