Commit 6e53aca9 by Henrik N

Show 'Nothing to annotate!' instead of 'Annotated ' when there are no applicable models.

parent 935e9412
...@@ -143,7 +143,11 @@ module AnnotateModels ...@@ -143,7 +143,11 @@ module AnnotateModels
puts "Unable to annotate #{file}: #{e.message}" puts "Unable to annotate #{file}: #{e.message}"
end end
end end
puts "Annotated #{annotated.join(', ')}" if annotated.empty?
puts "Nothing to annotate!"
else
puts "Annotated #{annotated.join(', ')}"
end
end end
def remove_annotations def remove_annotations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment