update code according to PR's comment

This commit is contained in:
guosj 2022-03-28 15:23:31 +08:00
parent 21636c98a5
commit dd2b9d93cc

View file

@ -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{}{}
}
}