Commit dffed7a
committed
perf: Reduce unnecessary getZone() calls in moment.tz()
`getZone(name)` was called on every call to `moment.tz()`, even though it
wasn't needed in a lot of cases. This changes the call to only be made if
it's needed for the `if` condition.1 parent f7d8fc2 commit dffed7a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | | - | |
| 594 | + | |
| 595 | + | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| |||
0 commit comments