Commit 97e7d9a
refactor: simplify identityCompile and remove double type assertion
Address code review feedback:
- Simplify identityCompile to directly return originalSource instead of
unnecessary offset-based reconstruction
- Remove `as unknown as` double assertion in filterEmptyRules
Co-authored-by: jogibear9988 <364896+jogibear9988@users.noreply.github.com>1 parent e26f125 commit 97e7d9a
1 file changed
Lines changed: 4 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 232 | + | |
261 | 233 | | |
262 | 234 | | |
263 | 235 | | |
| |||
278 | 250 | | |
279 | 251 | | |
280 | 252 | | |
281 | | - | |
282 | | - | |
| 253 | + | |
283 | 254 | | |
284 | 255 | | |
285 | 256 | | |
| |||
0 commit comments