Remove completed TODOs

This commit is contained in:
Tulir Asokan
2017-11-25 15:13:38 +02:00
parent 64462af078
commit ffd04e00c2
-2
View File
@@ -52,14 +52,12 @@ class TelegramPuppet {
this.puppetStorage = {
get: async (key) => {
let value = this.data[key]
// TODO test and (enable or remove)
if (typeof value === "string" && value.startsWith("b64:")) {
value = Array.from(Buffer.from(value.substr("b64:".length), "base64"))
}
return value
},
set: async (key, value) => {
// TODO test and (enable or remove)
if (Array.isArray(value)) {
value = `b64:${Buffer.from(value).toString("base64")}`
}