rubocop: Move block parameters to same line as beginning of block
This commit is contained in:
parent
9b86998e35
commit
1726f03489
@ -45,9 +45,7 @@ module Jekyll
|
||||
|
||||
if site.has_key?("crossref")
|
||||
## We already have refs loaded, so merge
|
||||
site['crossref'].merge!(unvalidated_refs) {
|
||||
|key, old_value, new_value|
|
||||
|
||||
site['crossref'].merge!(unvalidated_refs) { |key, old_value, new_value|
|
||||
if old_value != new_value
|
||||
abort("Error: autocrossref key '#{key}' wants to point to both '#{old_value}' and '#{new_value}'")
|
||||
end
|
||||
|
||||
@ -56,9 +56,7 @@ module Jekyll
|
||||
## Add all synonyms to the autocrossref hash table for automatic linking
|
||||
site.config["crossref"] = site.config["crossref"] ? site.config["crossref"] : {}
|
||||
for term in terms do
|
||||
site.config["crossref"].merge!({ term => output_full_path }) {
|
||||
|key, old_value, new_value|
|
||||
|
||||
site.config["crossref"].merge!({ term => output_full_path }) { |key, old_value, new_value|
|
||||
if old_value != new_value
|
||||
abort("Error: autocrossref key '#{key}' wants to point to both '#{old_value}' and '#{new_value}'")
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user