Skip to content

Commit 3ec1fc3

Browse files
committed
review
1 parent 233016a commit 3ec1fc3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/v3/wfs_validation.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ func ValidateFeatureTypes(wfs *WFS, warnings *[]string, allErrs *field.ErrorList
8383
path.Index(index).Child("name"),
8484
featureType.Name,
8585
))
86-
}
87-
88-
if !slices.Contains(names, featureType.Name) {
86+
} else {
8987
names = append(names, featureType.Name)
9088
}
9189

0 commit comments

Comments
 (0)