Skip to content

Commit 65b9ce3

Browse files
authored
Editorial: Simplify PR925 (#931)
There are no reason we need to put the "Let _currency_ be _numberFormat_.[[Currency]]." line in a separate if block. Move that down
1 parent 7508197 commit 65b9ce3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/numberformat.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ <h1>Intl.NumberFormat ( [ _locales_ [ , _options_ ] ] )</h1>
3333
1. Set _numberFormat_.[[NumberingSystem]] to _r_.[[nu]].
3434
1. Perform ? SetNumberFormatUnitOptions(_numberFormat_, _options_).
3535
1. Let _style_ be _numberFormat_.[[Style]].
36-
1. If _style_ is *"currency"*, then
37-
1. Let _currency_ be _numberFormat_.[[Currency]].
3836
1. Let _notation_ be ? GetOption(_options_, *"notation"*, ~string~, « *"standard"*, *"scientific"*, *"engineering"*, *"compact"* », *"standard"*).
3937
1. Set _numberFormat_.[[Notation]] to _notation_.
4038
1. If _style_ is *"currency"* and *"notation"* is *"standard"*, then
39+
1. Let _currency_ be _numberFormat_.[[Currency]].
4140
1. Let _cDigits_ be CurrencyDigits(_currency_).
4241
1. Let _mnfdDefault_ be _cDigits_.
4342
1. Let _mxfdDefault_ be _cDigits_.

0 commit comments

Comments
 (0)