Refactor next & previous theme to modify the value in place
Type of Change
[x] Refactoring
Description
Currently, theme next() and prev() methods return a new value. There's no purpose for this, since we're only using the next and prev methods for modifying the value of the theme variable itself. Instead, I've changed the functions to modify the receiver in place, which improves the readability of the code.
Testing
Next and previous theme function correctly.
Checklist
[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] My changes generate no errors/warnings/merge conflicts.
Pull Request
Title
Refactor next & previous theme to modify the value in place
Type of Change
Description
Currently, theme next() and prev() methods return a new value. There's no purpose for this, since we're only using the next and prev methods for modifying the value of the theme variable itself. Instead, I've changed the functions to modify the receiver in place, which improves the readability of the code.
Testing
Next and previous theme function correctly.
Checklist