Skip to content

Commit

Permalink
remove duplicate isValidMetadataPath in assignMetadata (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozercan committed Apr 17, 2021
1 parent 98c6fa6 commit 05a8180
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/mutation/assignmeta_mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ func MutatorForAssignMetadata(assignMeta *mutationsv1alpha1.AssignMetadata) (*As
return nil, errors.Wrap(err, "failed to retrieve id for assignMetadata type")
}

if !isValidMetadataPath(path) {
return nil, fmt.Errorf("invalid location for assignmetadata: %s", assignMeta.Spec.Location)
}
return &AssignMetadataMutator{
id: id,
assignMetadata: assignMeta.DeepCopy(),
Expand Down

0 comments on commit 05a8180

Please sign in to comment.