mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
removed some blank lines
This commit is contained in:
parent
b91d38076a
commit
55134ae37a
1 changed files with 0 additions and 5 deletions
|
@ -154,7 +154,6 @@ func CheckConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
if Config.Debug {
|
if Config.Debug {
|
||||||
log.Println("CheckConfig()")
|
log.Println("CheckConfig()")
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := getPath(r, "config")
|
cfg, err := getPath(r, "config")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
||||||
|
@ -178,7 +177,6 @@ func GetConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
if Config.Debug {
|
if Config.Debug {
|
||||||
log.Println("GetConfig()")
|
log.Println("GetConfig()")
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := getPath(r, "config")
|
cfg, err := getPath(r, "config")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
||||||
|
@ -202,7 +200,6 @@ func SaveConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
if Config.Debug {
|
if Config.Debug {
|
||||||
log.Println("SaveConfig()")
|
log.Println("SaveConfig()")
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := getPath(r, "config")
|
cfg, err := getPath(r, "config")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
||||||
|
@ -259,11 +256,9 @@ func DeleteConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// ListBlobs lists all blobs of a given type in an arbitrary order.
|
// ListBlobs lists all blobs of a given type in an arbitrary order.
|
||||||
func ListBlobs(w http.ResponseWriter, r *http.Request) {
|
func ListBlobs(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if Config.Debug {
|
if Config.Debug {
|
||||||
log.Println("ListBlobs()")
|
log.Println("ListBlobs()")
|
||||||
}
|
}
|
||||||
|
|
||||||
fileType := pat.Param(r, "type")
|
fileType := pat.Param(r, "type")
|
||||||
path, err := getPath(r, fileType)
|
path, err := getPath(r, fileType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue