mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
update code according to PR's comment
This commit is contained in:
parent
21636c98a5
commit
dd2b9d93cc
|
@ -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…
Reference in a new issue