diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-08 11:21:50 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-08 11:21:50 -0600 |
| commit | 4309233e2bee1f56a8e41f3b49b1b564f6a09d21 (patch) | |
| tree | 9702c79c3920b2de927f7ec16f1fc4ef1dbaa471 /tests/test-wttrin--validate-weather-data.el | |
| parent | 31649f588dbc0098b6641222403f68107819f34f (diff) | |
refactor: render: split wttrin--display-weather into focused helper functions
- Extracted wttrin--validate-weather-data for data validation
- Extracted wttrin--process-weather-content for ANSI filtering and cleanup
- Extracted wttrin--add-buffer-instructions for UI instructions
- Refactored main function to use helpers (improved readability)
Benefits:
- Each function has single, clear purpose
- Easier to test individual components
- Better code organization and maintainability
- Main function reduced from ~40 lines to ~20 lines
Diffstat (limited to 'tests/test-wttrin--validate-weather-data.el')
0 files changed, 0 insertions, 0 deletions
