aboutsummaryrefslogtreecommitdiff
path: root/go/operation/delete_content.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/delete_content.go')
-rw-r--r--go/operation/delete_content.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/go/operation/delete_content.go b/go/operation/delete_content.go
index 8f8ea58f3..f14259ee6 100644
--- a/go/operation/delete_content.go
+++ b/go/operation/delete_content.go
@@ -6,19 +6,19 @@ import (
"net/http"
)
-func DeleteFile(server string, fileId string) (error) {
+func DeleteFile(server string, fileId string) error {
fid, parseErr := storage.ParseFileId(fileId)
if parseErr != nil {
return parseErr
}
- lookup, lookupError := Lookup(server,fid.VolumeId)
+ lookup, lookupError := Lookup(server, fid.VolumeId)
if lookupError != nil {
- return lookupError
+ return lookupError
}
if len(lookup.Locations) == 0 {
- return nil
+ return nil
}
- return Delete("http://"+lookup.Locations[0].PublicUrl+"/"+fileId)
+ return Delete("http://" + lookup.Locations[0].PublicUrl + "/" + fileId)
}
func Delete(url string) error {
req, err := http.NewRequest("DELETE", url, nil)