# HG changeset patch # User Mikael Berthe # Date 1543700769 -3600 # Node ID af90d9396ef1b23e2eff1e03e99813661a33972f # Parent 95d940f9598e205574bbc1cded9597d55617ee6d Improve previous commit (JSON output) diff -r 95d940f9598e -r af90d9396ef1 goduf.go --- a/goduf.go Thu Nov 29 21:51:26 2018 +0100 +++ b/goduf.go Sat Dec 01 22:46:09 2018 +0100 @@ -508,8 +508,12 @@ myLog.Println(3, "* Number of match groups:", len(result)) // Done! Prepare results data - if len(result) > 0 && !options.Summary && !options.OutToJSON { - myLog.Println(1, "* Dupes:") + if len(result) > 0 && !options.Summary { + if options.OutToJSON { + myLog.Println(1, "* Dumping dupes as JSON...") + } else { + myLog.Println(1, "* Dupes:") + } } // Sort files by path inside each group