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:
parent
98d97ba0e6
commit
e68856dff3
1 changed files with 1 additions and 11 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue