1
0
mirror of https://github.com/fumiama/dupimage.git synced 2026-06-26 06:50:37 +08:00

优化流程

This commit is contained in:
源文雨
2022-07-30 12:16:27 +08:00
parent 845565c0b0
commit fcf110d231

View File

@@ -190,7 +190,8 @@ func main() {
fmt.Println("sameset:", sameset) fmt.Println("sameset:", sameset)
panic("index " + strconv.Itoa(j) + ", file " + chklst[j].name + " has been marked as set " + strconv.FormatUint(uint64(x), 10) + " but cannot be found in sameset") panic("index " + strconv.Itoa(j) + ", file " + chklst[j].name + " has been marked as set " + strconv.FormatUint(uint64(x), 10) + " but cannot be found in sameset")
} }
} else if isfirst { // 自立新组 } else {
if isfirst { // 自立新组
sameset = append(sameset, []uint{uint(i)}) sameset = append(sameset, []uint{uint(i)})
duplis[uint(i)] = uint(i) duplis[uint(i)] = uint(i)
isfirst = false isfirst = false
@@ -199,6 +200,7 @@ func main() {
} }
} }
duplis[uint(j)] = uint(i) duplis[uint(j)] = uint(i)
}
if isdebu { if isdebu {
fmt.Print("\n") fmt.Print("\n")
} }