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