Skip to content

Commit 1230531

Browse files
committed
fix extract reset
1 parent 447033b commit 1230531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/dupi/extract.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ func (x *extractCmd) Run(args []string) error {
9696
fmt.Printf("\n")
9797
}
9898
}
99-
shape[0].Docs = shape[0].Docs[:0]
99+
for i := range shape {
100+
shape[i].Docs = shape[i].Docs[:0]
101+
}
100102
}
101103
}

0 commit comments

Comments
 (0)