[Component-DI] Removed useless return