GH370 delete git repository

#370 
use return instead of if