Doubt in logic of code

https://practice.geeksforgeeks.org/problems/flood-fill-algorithm1856/1/?category[]=Matrix&category[]=Matrix&problemStatus=unsolved&page=2&query=category[]MatrixproblemStatusunsolvedpage2category[]Matrix#

In the solution, if I remove the comment and activate the statement, the code works. But my doubt is, why is the commented piece of code even necessary. If image[sr][sc]==newColor, it will not be equal to b and hence the previous if statement should take care of it.

check your previous doubt have replied on it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.