removed unnecessary return

removed unnecessary return from if statement from feedback.