Skip to content

Commit 1a47373

Browse files
committed
Fix -d option cannot work
Signed-off-by: Xiang Dai <[email protected]>
1 parent 0d8d190 commit 1a47373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gci/gci.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func processFile(filename string, out io.Writer, set *FlagSet) error {
308308
return err
309309
}
310310
}
311-
if *set.DoWrite {
311+
if *set.DoDiff {
312312
data, err := diff(ori, res, filename)
313313
if err != nil {
314314
return fmt.Errorf("failed to diff: %v", err)

0 commit comments

Comments
 (0)