ooyala / barkeep

The friendly code review system.
getbarkeep.org
1.42k stars 145 forks source link

fix NoMethodError #510

Closed DrVanScott closed 9 years ago

DrVanScott commented 9 years ago
NoMethodError - undefined method `gsub' for nil:NilClass:
        barkeep/lib/syntax_highlighter.rb:51:in `global_highlighting'
        barkeep/lib/syntax_highlighter.rb:25:in `colorize_blob'
        barkeep/lib/git_diff_utils.rb:48:in `block in get_tagged_commit_diffs'
        barkeep/lib/git_diff_utils.rb:26:in `map'
        barkeep/lib/git_diff_utils.rb:26:in `get_tagged_commit_diffs'
        barkeep/barkeep_server.rb:327:in `block in <class:BarkeepServer>'
bo-chen commented 9 years ago

Looks good, thanks for the fix.