Skip to content

Commit

Permalink
- Fixed stupid error when run on empty file.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/flog/dev/": change = 8109]
  • Loading branch information
zenspider committed Jan 10, 2013
1 parent 327b77b commit 79ca295
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/flog.rb
Expand Up @@ -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
Expand Down

0 comments on commit 79ca295

Please sign in to comment.