Skip to content

Commit

Permalink
Fix Destructuring Errors in Util (#2171)
Browse files Browse the repository at this point in the history
* Fix Destructuring

* Fix another one
  • Loading branch information
UnseenFaith authored and Lewdcario committed Jan 24, 2018
1 parent 7e0e457 commit 58d8528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/Util.js
Expand Up @@ -125,7 +125,7 @@ class Util {
if (!has(given, key) || given[key] === undefined) {
given[key] = def[key];
} else if (given[key] === Object(given[key])) {
given[key] = this.mergeDefault(def[key], given[key]);
given[key] = Util.mergeDefault(def[key], given[key]);
}
}

Expand All @@ -139,7 +139,7 @@ class Util {
* @private
*/
static convertToBuffer(ab) {
if (typeof ab === 'string') ab = this.str2ab(ab);
if (typeof ab === 'string') ab = Util.str2ab(ab);
return Buffer.from(ab);
}

Expand Down

0 comments on commit 58d8528

Please sign in to comment.