Merge pull request #107 from rocketspacer/master

Remove check duplicate same path
This commit is contained in:
Alessio Pracchia 2017-10-31 11:48:16 +01:00 committed by GitHub
commit 635f7dec73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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!")
}