Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
yoojinko committed Feb 22, 2024
1 parent 1572d1b commit 78eda1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78eda1d

Please sign in to comment.