From 72d2a4a8693ca0966d355f2a7218291409084266 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Sat, 12 Oct 2024 01:33:12 -0600 Subject: [PATCH] Remove redundant 'await' when returning in verifications.js --- src/verifications.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/verifications.js b/src/verifications.js index 64b8a02..4faecfb 100644 --- a/src/verifications.js +++ b/src/verifications.js @@ -226,7 +226,7 @@ const runJSON = async (proofData, checkPath, params) => { } if (typeof proofData === 'object' && !Array.isArray(proofData) && checkPath[0] === '*') { - return await runJSON(Object.values(proofData), checkPath.slice(1), params) + return runJSON(Object.values(proofData), checkPath.slice(1), params) } if (Array.isArray(proofData)) { @@ -248,12 +248,12 @@ const runJSON = async (proofData, checkPath, params) => { if (checkPath.length === 0) { switch (params.claimRelation) { case ClaimRelation.ONEOF: - return await containsProof(proofData.join('|'), params) + return containsProof(proofData.join('|'), params) case ClaimRelation.CONTAINS: case ClaimRelation.EQUALS: default: - return await containsProof(proofData, params) + return containsProof(proofData, params) } } @@ -261,7 +261,7 @@ const runJSON = async (proofData, checkPath, params) => { throw new Error('err_json_structure_incorrect') } - return await runJSON( + return runJSON( proofData[checkPath[0]], checkPath.slice(1), params