0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 16:33:53 +01:00

ircd:Ⓜ️:media::file: Use structured binding; minor cleanup.

This commit is contained in:
Jason Volk 2020-08-23 06:53:35 -07:00
parent 98d97ba0e6
commit e68856dff3

View file

@ -90,21 +90,11 @@ try
16_KiB
};
const auto pair
const auto &[head, content]
{
download(buf, mxc, remote)
};
const auto &head
{
pair.first
};
const const_buffer &content
{
pair.second
};
char mime_type_buf[64];
const auto &content_type
{