Add missing return after utils.InternalServerError()

Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
This commit is contained in:
Erik Sjölund
2023-07-10 19:08:11 +02:00
parent 7cd1fb77f9
commit 6ec261e7ac
2 changed files with 5 additions and 0 deletions

View File

@@ -547,6 +547,7 @@ func PodStats(w http.ResponseWriter, r *http.Request) {
options := entities.PodStatsOptions{All: query.All}
if err := entities.ValidatePodStatsOptions(query.NamesOrIDs, &options); err != nil {
utils.InternalServerError(w, err)
return
}
var flush = func() {}