[MM-28945] api4/file: add missing return statement (#15552)
* api4/file: add missing return statement * api4/file: add a test case for GetPublicFile; request a deleted file * add missing check Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1c0d590c81
Коммит
7bd18264fd
@@ -674,6 +674,7 @@ func getPublicFile(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
if err != nil {
|
||||
c.Err = err
|
||||
c.Err.StatusCode = http.StatusNotFound
|
||||
return
|
||||
}
|
||||
defer fileReader.Close()
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user