Commit df7e6d2
committed
Removed redundant
The `Save()` method currently has two places where it updates the `_ContentTypeDescriptors` cache. This is redundant, and means the second one—which is actually more cautious—will never actually fire. To avoid this, I've removed the first one.
While I was at it, I also updated the second one to use pattern matching syntax for the variable definition, which is a bit less code, and easier to read.ContentTypeDescriptor update in Save()
1 parent 78a9d3f commit df7e6d2
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | 323 | | |
331 | 324 | | |
332 | 325 | | |
| |||
364 | 357 | | |
365 | 358 | | |
366 | 359 | | |
367 | | - | |
| 360 | + | |
368 | 361 | | |
369 | 362 | | |
370 | 363 | | |
371 | | - | |
| 364 | + | |
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
| |||
0 commit comments