mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -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
|
||||
}
|
||||
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
|
||||
}
|
||||
return util.JSONResponse{
|
||||
|
|
|
|||
Loading…
Reference in a new issue