Fixed typo
Changed warning description

Also removed an unnecessary return.