Commit 54e8e83
committed
assert: optimize string length calculation in getSimpleDiff
Reduced redundant typeof operations by caching type checks
and simplified the string length calculation using ternary
operators for improved readability.1 parent 82fc81c commit 54e8e83
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 155 | + | |
160 | 156 | | |
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
165 | 160 | | |
166 | | - | |
| 161 | + | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
0 commit comments