Hi
in WorkState in update method there is a local variable named getWork.
This name 'getWork' looks like a method name and is confusing.
I suggest renaming to 'needWork' or even better 'hasWork'
For 'hasWork' will need some other changes, not only renaming
Hi in WorkState in update method there is a local variable named getWork. This name 'getWork' looks like a method name and is confusing. I suggest renaming to 'needWork' or even better 'hasWork'
For 'hasWork' will need some other changes, not only renaming