Skip to content

Commit

Permalink
Hash: Force generate() and compare() as async
Browse files Browse the repository at this point in the history
Signed-off-by: Fadion Dashi <jonidashi@gmail.com>
  • Loading branch information
fadion committed Mar 19, 2018
1 parent de47313 commit 6d62294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hash/lib/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Hash {
* @param {string} plain
* @returns {string}
*/
generate(word) {
async generate(word) {
return this._algorithm.generate(word)
}

Expand All @@ -29,7 +29,7 @@ class Hash {
* @param {string} hash
* @returns {boolean}
*/
compare(plain, hash) {
async compare(plain, hash) {
return this._algorithm.compare(plain, hash)
}
}
Expand Down

0 comments on commit 6d62294

Please sign in to comment.