Skip to content

Commit 62395cf

Browse files
committed
Feature: Non-crypto hashing algorithm opt-in through config: make linters happy again
1 parent 26257bc commit 62395cf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/util/createHash.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ class BulkUpdateDecorator {
3434
this.hash.update(this.buffer);
3535
}
3636
var digestResult = this.hash.digest(encoding);
37-
if(typeof digestResult !== "string")
38-
return digestResult.toString();
39-
return digestResult;
37+
return typeof digestResult === "string" ? digestResult : digestResult.toString();
4038
}
4139
}
4240

0 commit comments

Comments
 (0)