What's wrong with this code?

There is unnecessary repeated codeThere's nothing wrong

There is unnecessary repeated code.