diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-07-14 12:21:22 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-07-14 12:21:22 -0700 |
commit | c763c7e402599a2789e260ecf61c11c68381aaa5 (patch) | |
tree | 721629fa686a7f831570ddc012c8190d6e2e17e6 | |
parent | f7f082f46c919e5c8c730a2c2ab0a7baf086b01b (diff) | |
download | gitlab-ce-c763c7e402599a2789e260ecf61c11c68381aaa5.tar.gz |
use the proper variable names o_O
-rw-r--r-- | lib/gitlab/highlight.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/highlight.rb b/lib/gitlab/highlight.rb index a9e429a29f4..9360afedfcb 100644 --- a/lib/gitlab/highlight.rb +++ b/lib/gitlab/highlight.rb @@ -35,8 +35,8 @@ module Gitlab def lexer @lexer ||= custom_language || begin - Rouge::Lexer.guess(filename: blob_name, source: blob_content).new - rescue Rouge::Lexer::AmbiguousGuess => e + Rouge::Lexer.guess(filename: @blob_name, source: @blob_content).new + rescue Rouge::Guesser::Ambiguous => e e.alternatives.sort_by(&:tag).first end end |