Skip to content

Commit

Permalink
unset metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
passichenko committed Oct 30, 2023
1 parent c4f6272 commit a1ffe0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/star/static/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func (w *walker) mutateMetadataFn(f *featurev1beta1.StaticFeature) metadataFn {
return func(ast *starFeatureAST) error {
metadataProto := f.FeatureOld.GetMetadata()
if metadataProto == nil {
ast.unset(MetadataAttrName)
return nil
}
metadataStarDict, err := w.genJSONStruct(metadataProto, nil)
Expand Down

0 comments on commit a1ffe0e

Please sign in to comment.