Browse Source

update code according to PR's comment

pull/2828/head
guosj 3 years ago
parent
commit
dd2b9d93cc
  1. 4
      weed/server/filer_server_handlers_tagging.go

4
weed/server/filer_server_handlers_tagging.go

@ -81,8 +81,8 @@ func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Reque
// parse out tags to be deleted
toDelete := strings.Split(r.URL.Query().Get("tagging"), ",")
deletions := make(map[string]struct{})
if !(len(toDelete) == 1 && toDelete[0] == "") {
for _, deletion := range toDelete {
for _, deletion := range toDelete {
if deletion != "" {
deletions[deletion] = struct{}{}
}
}

Loading…
Cancel
Save