Remove check duplicate same path

This commit is contained in:
Tuan Nguyen 2017-10-31 15:09:07 +07:00
parent e68331b6d1
commit 66285048cc

View File

@ -43,9 +43,6 @@ func split(args, fields []string) []string {
// Duplicates check projects with same name or same combinations of main/path
func duplicates(value Project, arr []Project) (Project, error) {
for _, val := range arr {
if value.Path == val.Path {
return val, errors.New("There is already a project with path '" + val.Path + "'. Check your config file!")
}
if value.Name == val.Name {
return val, errors.New("There is already a project with name '" + val.Name + "'. Check your config file!")
}