Skip to content

Commit

Permalink
Refactor code.
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Longley <[email protected]>
  • Loading branch information
gannan08 and dlongley authored Nov 6, 2024
1 parent 664e41b commit 25a3c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ProofSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function _getProofs({document}) {
proofSet = proofSet.map(proof => {
const {cryptosuite} = proof;
// JCS Data Integrity Suites require unmodified proofs
if(cryptosuite && cryptosuite.includes('-jcs-')) {
if(cryptosuite?.includes?.('-jcs-')) {
return proof;
}
return {'@context': context, ...proof};
Expand Down

0 comments on commit 25a3c84

Please sign in to comment.