Gh369 clone repository

#369 
use return directly, without if