mirror of
https://github.com/fumiama/dupimage.git
synced 2026-06-05 02:00:32 +08:00
fix: same judge
This commit is contained in:
9
main.go
9
main.go
@@ -163,7 +163,14 @@ func main() {
|
||||
INNERLOP:
|
||||
for l, set := range sameset {
|
||||
for _, item := range set {
|
||||
if item == uint(i) && l != k { // 找到旧组
|
||||
if item == uint(i) { // 找到旧组
|
||||
if l == k {
|
||||
if isdebu {
|
||||
fmt.Println("set", i, "and", x, "already in the same set")
|
||||
}
|
||||
hasfound = true
|
||||
break INNERLOP
|
||||
}
|
||||
if isdebu {
|
||||
fmt.Println("merge old set", set, "into", sameset[k])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user