Rubocop tweaks
This commit is contained in:
parent
4be3fcfd31
commit
c87e2e026e
9 changed files with 22 additions and 26 deletions
|
@ -87,13 +87,11 @@ module Middleman
|
|||
end
|
||||
end
|
||||
|
||||
def method_missing(key, *args)
|
||||
def method_missing(key, *_args)
|
||||
if key?(key.to_sym)
|
||||
self[key.to_sym]
|
||||
elsif key?(key.to_s)
|
||||
self[key.to_s]
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -131,7 +129,6 @@ module Middleman
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
# Normalize a path to not include a leading slash
|
||||
# @param [String] path
|
||||
# @return [String]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue