Skip to content

Commit

Permalink
fix(integrityStream): stop crashing if opts.algorithms and opts.integ…
Browse files Browse the repository at this point in the history
…rity have an algo mismatch
  • Loading branch information
zkat committed Jun 5, 2017
1 parent 4789c3a commit fb1293e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -259,6 +259,7 @@ function integrityStream (opts) {
const match = (
// Integrity verification mode
opts.integrity &&
newSri[algorithm] &&
digests &&
digests.find(hash => {
return newSri[algorithm].find(newhash => {
Expand Down

0 comments on commit fb1293e

Please sign in to comment.