Commit 505b08ce authored by Bas Westerbaan's avatar Bas Westerbaan
Browse files

difference: fix bug

parent 1f5d3c42
......@@ -168,13 +168,13 @@ func difference(old, cur []string) (came, gone []string) {
gone = []string{}
lut := make(map[string]bool)
for _, x := range old {
lut[x] = false
lut[x] = true
}
for _, x := range cur {
if _, ok := lut[x]; !ok {
came = append(came, x)
} else {
lut[x] = true
lut[x] = false
}
}
for x, isGone := range lut {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment