Skip to content

Commit

Permalink
fix(database): fix issue with base64Decode (#107)
Browse files Browse the repository at this point in the history
ISSUES CLOSED: 106
  • Loading branch information
jshcrowthe authored Jul 25, 2017
1 parent c8dfea3 commit 8553caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/core/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function setBufferImpl(impl) {
*/
export const base64Decode = function (str: string): string | null {
try {
if (BufferImpl()) {
if (BufferImpl) {
return new BufferImpl(str, 'base64').toString('utf8');
} else {
return base64.decodeString(str, /*useWebSafe=*/true);
Expand Down

0 comments on commit 8553caa

Please sign in to comment.