mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-01 18:25:02 -05:00
Rubocop: Lint/StringConversionInInterpolation
- Redundant use of Object#to_s in interpolation
This commit is contained in:
@@ -111,7 +111,7 @@ eos
|
||||
def add_code_tag(code)
|
||||
code_attributes = [
|
||||
"class=\"language-#{@lang.to_s.tr('+', '-')}\"",
|
||||
"data-lang=\"#{@lang.to_s}\""
|
||||
"data-lang=\"#{@lang}\""
|
||||
].join(" ")
|
||||
"<figure class=\"highlight\"><pre><code #{code_attributes}>#{code.chomp}</code></pre></figure>"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user