Closed ingconti closed 2 years ago
I do appreciate You test:
if (colorId < 0 || colorId > 4)
BUT You call it 4 times.
make a: bool safetyColorCheck(...){ .... if (colorId < 0 || colorId > 4) return false....... }
Fixed
I do appreciate You test:
if (colorId < 0 || colorId > 4)
BUT You call it 4 times.
make a: bool safetyColorCheck(...){ .... if (colorId < 0 || colorId > 4) return false....... }