lib/compare_task.rb in machinery-tool-1.16.1 vs lib/compare_task.rb in machinery-tool-1.16.2

- old
+ new

@@ -68,12 +68,13 @@ description1, description2 ) identical = false if description1[scope] || description2[scope] end end - output = "Compared descriptions are identical.\n" + output if identical && common_scopes - - if !identical_scopes.empty? + if identical && common_scopes + output = "\n" + output unless output.empty? + output = "Compared descriptions are identical." + output + elsif !identical_scopes.empty? phrase = Machinery::pluralize(identical_scopes.count, "scope is", "scopes are") output += "Following #{phrase} identical in both descriptions: " + identical_scopes.join(",") end output