variable: fixup metadata copy comment and remove unrequired type. (#17234)

This commit is contained in:
James Rasell 2023-05-18 14:49:41 +02:00 committed by GitHub
parent 552dc06b1d
commit 96f7c84e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -219,9 +219,10 @@ func (vd *VariableDecrypted) Canonicalize() {
}
}
// GetNamespace returns the variable's namespace. Used for pagination.
// Copy returns a fully hydrated copy of VariableMetadata that can be
// manipulated while ensuring the original is not touched.
func (sv *VariableMetadata) Copy() *VariableMetadata {
var out VariableMetadata = *sv
var out = *sv
return &out
}