Skip to content

Commit 36bbdb7

Browse files
author
Travers McInerney
committed
Add guard for nil
1 parent 74f5518 commit 36bbdb7

File tree

1 file changed

+2
-1
lines changed
  • lib/zendesk_apps_support/validations

1 file changed

+2
-1
lines changed

lib/zendesk_apps_support/validations/source.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def jshint_error(file)
4242

4343
def jshint_errors(files)
4444
files.each_with_object([]) do |file, errors|
45-
errors << jshint_error(file)
45+
error = jshint_error(file)
46+
errors << error unless error.nil?
4647
end
4748
end
4849

0 commit comments

Comments
 (0)