mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 12:13:09 -06:00
Add comment and nil check (better save than sorry)
This commit is contained in:
parent
eb7e81ca4f
commit
3e81bc68b7
|
|
@ -74,7 +74,8 @@ func Setup(
|
||||||
return *r
|
return *r
|
||||||
}
|
}
|
||||||
respondSize := cfg.MaxFileSizeBytes
|
respondSize := cfg.MaxFileSizeBytes
|
||||||
if *cfg.MaxFileSizeBytes == 0 {
|
// Shouldn't be nil, as this is checked at startup.
|
||||||
|
if cfg.MaxFileSizeBytes != nil && *cfg.MaxFileSizeBytes == 0 {
|
||||||
respondSize = nil
|
respondSize = nil
|
||||||
}
|
}
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue