diff options
author | xengineering <me@xengineering.eu> | 2023-02-11 18:19:30 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-02-11 18:19:30 +0100 |
commit | ced1e404bd762abb114321334a3812805dee7059 (patch) | |
tree | 27f6ac74a2de4bd020af17408cd19d9e0265a501 /storage.go | |
parent | 05e3b3397c888807719d70af4ed3c73397d9374f (diff) | |
download | ceres-ced1e404bd762abb114321334a3812805dee7059.tar ceres-ced1e404bd762abb114321334a3812805dee7059.tar.zst ceres-ced1e404bd762abb114321334a3812805dee7059.zip |
Apply go fmt *.go
This auto-applies the recommended Go codestyle.
Diffstat (limited to 'storage.go')
-rw-r--r-- | storage.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,10 +1,9 @@ - package main import ( + "io/ioutil" "log" "net/http" - "io/ioutil" "path/filepath" ) @@ -12,7 +11,7 @@ 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) + path, err := filepath.Abs(path) if err != nil { log.Print(err) http.Error(w, http.StatusText(400), 400) |