1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-20 10:20:00 +02:00

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