Skip to content

Commit

Permalink
Use Array.select for JRuby 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Nov 22, 2024
1 parent b7229ee commit 141d339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fugit/duration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def common_rewrite_dur(t)
kes = KEYS.entries
INFLA_KEYS,
NON_INFLA_KEYS =
kes.filter { |_, v| v[:I] }.freeze,
kes.filter { |_, v| ! v[:I] }.freeze
kes.select { |_, v| v[:I] }.freeze,
kes.select { |_, v| ! v[:I] }.freeze

def _to_s(key)

Expand Down

0 comments on commit 141d339

Please sign in to comment.