From a288826b924266ff4577003103ef49cf6bb5cc3c Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 11 Feb 2023 18:31:50 +0100 Subject: Remove most function-inline comments Docstrings for functions are a good thing. But the inside of a function should be written in a way that is self-explaining. Thus inline comments are just extra stuff to maintain and read. --- storage.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'storage.go') diff --git a/storage.go b/storage.go index e063d6b..dd6feb2 100644 --- a/storage.go +++ b/storage.go @@ -9,7 +9,6 @@ import ( func ServeStorage(w http.ResponseWriter, r *http.Request, path string) { - // generate absolute, cleaned path of ressource path = filepath.Join(config.Http.Storage, path) path, err := filepath.Abs(path) if err != nil { @@ -20,7 +19,6 @@ func ServeStorage(w http.ResponseWriter, r *http.Request, path string) { // TODO check if path is still in storage folder - // serve the file if nothing has been wrong http.ServeFile(w, r, path) } -- cgit v1.2.3-70-g09d2