mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
variable: fixup metadata copy comment and remove unrequired type. (#17234)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user