From da28e4a3e25e4e7e8fae69ae1b6e78028235aada Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Thu, 11 May 2017 09:19:56 +0200 Subject: [PATCH] mediaapi/writers/download: Update TODO comment that is done --- src/github.com/matrix-org/dendrite/mediaapi/writers/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go index f70608292..68e205d07 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go @@ -166,7 +166,7 @@ func Download(w http.ResponseWriter, req *http.Request, origin types.ServerName, respondFromRemoteFile(w, logger, r.MediaMetadata, cfg, db, activeRemoteRequests) } else { - // TODO: If we do not have a record and the origin is local, or if we have another error from the database, the file is not found + // If we do not have a record and the origin is local, or if we have another error from the database, the file is not found jsonErrorResponse(w, util.JSONResponse{ Code: 404, JSON: jsonerror.NotFound(fmt.Sprintf("File with media ID %q does not exist", r.MediaMetadata.MediaID)),