Skip to content

Commit

Permalink
Use .empty? instead of length comparison with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasos Latsas authored and Tasos Latsas committed Dec 24, 2016
1 parent beb7b95 commit 0cc2cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/gettext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self
# integer-index based style
# TODO move this information to the pluralization module
def plural_keys(*args)
args.length == 0 ? @@plural_keys : @@plural_keys[args.first] || @@plural_keys[:en]
args.empty? ? @@plural_keys : @@plural_keys[args.first] || @@plural_keys[:en]
end

def extract_scope(msgid, separator)
Expand Down

0 comments on commit 0cc2cad

Please sign in to comment.