Closed cpa-gecko closed 5 years ago
Code Climate has analyzed commit cde1c36c and detected 0 issues on this pull request.
View more on Code Climate.
did we have one?; do we still use commands where this matters?
originally we wanted to force new modes globally during runtime; if you need to override that you could just set a new mode (the singleton properties were readonly; not the property of the class so you could just set a new one.)
if that changed: I'm fine
you're right, the issue is not as important anymore, since we moved away from using commands for data. still, with the mode reference could lead to a command starting with one mode and ending with another (e.g. when implementing async code like fetching data). and the fix is rather trivial ... :)
mode should be copied instead of referenced. this could lead to race conditions