Skip to content

Commit da498c2

Browse files
gibson042ryzokuken
authored andcommitted
Editorial: Reduce indentation in PartitionDurationFormatPattern
1 parent 4c139f1 commit da498c2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

spec/durationformat.html

+11-12
Original file line numberDiff line numberDiff line change
@@ -961,18 +961,17 @@ <h1>
961961
1. Set _numericUnitFound_ to *true*.
962962
1. Else,
963963
1. Let _nfOpts_ be OrdinaryObjectCreate(*null*).
964-
1. If _unit_ is *"seconds"*, *"milliseconds"*, or *"microseconds"*, then
965-
1. If NextUnitFractional(_durationFormat_, _unit_) is *true*, then
966-
1. Set _value_ to _value_ + ComputeFractionalDigits(_durationFormat_, _duration_).
967-
1. Let _fractionDigits_ be _durationFormat_.[[FractionalDigits]].
968-
1. If _fractionDigits_ is *undefined*, then
969-
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"maximumFractionDigits"*, *9*<sub>𝔽</sub>).
970-
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"minimumFractionDigits"*, *+0*<sub>𝔽</sub>).
971-
1. Else,
972-
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"maximumFractionDigits"*, _fractionDigits_).
973-
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"minimumFractionDigits"*, _fractionDigits_).
974-
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"roundingMode"*, *"trunc"*).
975-
1. Set _numericUnitFound_ to *true*.
964+
1. If _unit_ is one of *"seconds"*, *"milliseconds"*, or *"microseconds"*, and NextUnitFractional(_durationFormat_, _unit_) is *true*, then
965+
1. Set _value_ to _value_ + ComputeFractionalDigits(_durationFormat_, _duration_).
966+
1. Let _fractionDigits_ be _durationFormat_.[[FractionalDigits]].
967+
1. If _fractionDigits_ is *undefined*, then
968+
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"maximumFractionDigits"*, *9*<sub>𝔽</sub>).
969+
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"minimumFractionDigits"*, *+0*<sub>𝔽</sub>).
970+
1. Else,
971+
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"maximumFractionDigits"*, _fractionDigits_).
972+
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"minimumFractionDigits"*, _fractionDigits_).
973+
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"roundingMode"*, *"trunc"*).
974+
1. Set _numericUnitFound_ to *true*.
976975
1. If _display_ is *"always"* or _value_ is not 0, then
977976
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"numberingSystem"*, _durationFormat_.[[NumberingSystem]]).
978977
1. If _signDisplayed_ is *true*, then

0 commit comments

Comments
 (0)