Permalink
Browse files

- Fixed stupid error when run on empty file.

[git-p4: depot-paths = "//src/flog/dev/": change = 8109]
  • Loading branch information...
1 parent 327b77b commit 79ca29586b3530d5dffc12929cbc264441180fe3 @zenspider zenspider committed Jan 10, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/flog.rb
View
@@ -294,6 +294,9 @@ def flog_ruby! ruby, file="-", timeout = 10
warn "** flogging #{file}" if option[:verbose]
ast = @parser.process ruby, file, timeout
+
+ return unless ast
+
mass[file] = ast.mass
process ast
end

0 comments on commit 79ca295

Please sign in to comment.