style: removed unused codes

This commit is contained in:
원더 2021-02-10 13:24:26 +09:00
parent 3c69159fe9
commit b03603f4b0

View File

@ -161,9 +161,6 @@ async function getBotList(type: ListType, page = 1, query?: string):Promise<BotL
async function getImage(url: string):Promise<Stream> { async function getImage(url: string):Promise<Stream> {
const res = await fetch(url) const res = await fetch(url)
if(!res.ok) return null if(!res.ok) return null
// const buf = await res.buffer()
// const readable = bufferToStream(buf)
// await readable.read()
const cache = new StreamCache() const cache = new StreamCache()
return res.body.pipe(cache) return res.body.pipe(cache)
} }