Rubocop: Lint/UselessAssignment
This commit is contained in:
parent
085a778b0a
commit
ec83ef60b5
|
@ -7,6 +7,7 @@ module Jekyll
|
|||
code = code.to_s
|
||||
code = code.sub(/<pre>/, "<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">")
|
||||
code = code.sub(/<\/pre>/, "</code></pre>")
|
||||
code
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ module Jekyll
|
|||
|
||||
def post_read
|
||||
if DATE_FILENAME_MATCHER =~ relative_path
|
||||
m, cats, date, slug, ext = *relative_path.match(DATE_FILENAME_MATCHER)
|
||||
_, _, date, slug, ext = *relative_path.match(DATE_FILENAME_MATCHER)
|
||||
merge_data!({
|
||||
"slug" => slug,
|
||||
"ext" => ext
|
||||
|
|
Loading…
Reference in New Issue