Skip to content

Commit 4190204

Browse files
committed
Remove redundant initialization of computed_currency in parse_currency method
1 parent e7ddd2d commit 4190204

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/monetize/parser.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def to_big_decimal(value)
7474
attr_reader :input, :fallback_currency, :options
7575

7676
def parse_currency
77-
computed_currency = nil
7877
computed_currency = input[/[A-Z]{2,3}/]
7978
computed_currency = nil unless Monetize::Parser::CURRENCY_SYMBOLS.value?(computed_currency)
8079
computed_currency ||= compute_currency if assume_from_symbol?

0 commit comments

Comments
 (0)