Commit ddc0ce6
committed
refactor(CardPiles, CardTags, Keywords): streamline resolution methods for improved readability
- Consolidated the logic in `GetPileType`, `GetCardTag`, and `GetCardKeyword` methods to simplify the return statements, enhancing code clarity and maintainability.
- This change reduces redundancy by combining the parsing and retrieval processes into a single return statement, improving overall efficiency.1 parent b1bacc7 commit ddc0ce6
3 files changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 299 | + | |
303 | 300 | | |
304 | 301 | | |
305 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 214 | + | |
218 | 215 | | |
219 | 216 | | |
220 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
| 472 | + | |
476 | 473 | | |
477 | 474 | | |
478 | 475 | | |
| |||
0 commit comments