Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Address Ruby 2.7 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycuadra committed Dec 31, 2019
1 parent a8b9664 commit 312df73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lita/adapter.rb
Expand Up @@ -34,7 +34,7 @@ class << self
# @param hash [Hash] An optional hash of values to be interpolated in the string.
# @return [String] The translated string.
def translate(key, hash = {})
I18n.translate("lita.adapters.#{namespace}.#{key}", hash)
I18n.translate("lita.adapters.#{namespace}.#{key}", **hash)
end

alias t translate
Expand Down
2 changes: 1 addition & 1 deletion lib/lita/handler/common.rb
Expand Up @@ -48,7 +48,7 @@ def template_root(path = nil)
# @return [String] The translated string.
# @since 3.0.0
def translate(key, hash = {})
I18n.translate("lita.handlers.#{namespace}.#{key}", hash)
I18n.translate("lita.handlers.#{namespace}.#{key}", **hash)
end

alias t translate
Expand Down

0 comments on commit 312df73

Please sign in to comment.