Rubocop: Lint/UselessAssignment

This commit is contained in:
Pat Hawks 2016-01-04 11:49:54 -08:00
parent 085a778b0a
commit ec83ef60b5
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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