mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
style: removed unused codes
This commit is contained in:
parent
3c69159fe9
commit
b03603f4b0
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user