lib/textlint/plugin.rb in danger-textlint-1.2.0 vs lib/textlint/plugin.rb in danger-textlint-1.2.1

- old
+ new

@@ -38,9 +38,10 @@ attr_accessor :max_comment_num # Execute textlint and send comment # @return [void] def lint + return if target_files.empty? bin = textlint_path result_json = run_textlint(bin, target_files) errors = parse(result_json) send_comment(errors) end