Commit 0c2ac8a
committed
refactor(readme): avoid computing truncation check unnecessarily
Move the length comparison into the if condition so JS short-circuits
past it when the earlier checks already trigger the jsDelivr fetch.1 parent cbba528 commit 0c2ac8a
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments