Fixed if logic error  when choosing release or snapshot repo