1
0
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:
源文雨
2022-07-30 12:14:37 +08:00
parent d9db053fc8
commit 845565c0b0

View File

@@ -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])
}