diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-06-12 09:19:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 09:19:29 -0400 |
commit | d0970daacda0b6f6c2077c2f81948536b574bbe9 (patch) | |
tree | f116548be832ae6786449dd6f1257865efe38026 /std/hash | |
parent | ca1c2ee82207f2ead857ab4aeca48edff16827ae (diff) |
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/hash')
-rw-r--r-- | std/hash/md5.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/hash/md5.ts b/std/hash/md5.ts index 9415b5f80..f7e55d961 100644 --- a/std/hash/md5.ts +++ b/std/hash/md5.ts @@ -235,13 +235,14 @@ export class Md5 { switch (format) { case "hex": return hex.encodeToString(new Uint8Array(hash)); - case "base64": + case "base64": { const data = new Uint8Array(hash); let dataString = ""; for (let i = 0; i < data.length; ++i) { dataString += String.fromCharCode(data[i]); } return window.btoa(dataString); + } default: throw new Error("md5: invalid format"); } |