remove redundant 'return' and 'pass' statements