in extend function,the keyword "return" is unnecessary.

in extend function,the keyword "return" is unnecessary.