diff options
| author | xengineering <me@xengineering.eu> | 2023-02-11 18:31:50 +0100 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2023-02-11 18:31:50 +0100 | 
| commit | a288826b924266ff4577003103ef49cf6bb5cc3c (patch) | |
| tree | c20106aee80e78e7f3873a5f149b7bf9c955e1c0 /storage.go | |
| parent | ced1e404bd762abb114321334a3812805dee7059 (diff) | |
| download | ceres-a288826b924266ff4577003103ef49cf6bb5cc3c.tar ceres-a288826b924266ff4577003103ef49cf6bb5cc3c.tar.zst ceres-a288826b924266ff4577003103ef49cf6bb5cc3c.zip | |
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.
Diffstat (limited to 'storage.go')
| -rw-r--r-- | storage.go | 2 | 
1 files changed, 0 insertions, 2 deletions
| @@ -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)  } | 
