mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-04-15 00:36:23 +00:00
Run gofmt
Golang v1.19 was not happy with our code comments.
This commit is contained in:
parent
2e0e93fb84
commit
2bbfe3edc8
2 changed files with 4 additions and 2 deletions
|
@ -490,6 +490,7 @@ func (in *valueRegexpCache) DeepCopy() *valueRegexpCache {
|
|||
}
|
||||
|
||||
// DeepCopyInto is a stub to augment the auto-generated code
|
||||
//
|
||||
//nolint:staticcheck // re.Copy is deprecated but we want to use it here
|
||||
func (in *valueRegexpCache) DeepCopyInto(out *valueRegexpCache) {
|
||||
*out = make(valueRegexpCache, len(*in))
|
||||
|
|
|
@ -120,9 +120,10 @@ type MatchExpressionSet map[string]*MatchExpression
|
|||
// an array of values that the operator evaluates the input against.
|
||||
//
|
||||
// NB: CreateMatchExpression or MustCreateMatchExpression() should be used for
|
||||
// creating new instances.
|
||||
// creating new instances.
|
||||
//
|
||||
// NB: Validate() must be called if Op or Value fields are modified or if a new
|
||||
// instance is created from scratch without using the helper functions.
|
||||
// instance is created from scratch without using the helper functions.
|
||||
type MatchExpression struct {
|
||||
// Op is the operator to be applied.
|
||||
Op MatchOp `json:"op"`
|
||||
|
|
Loading…
Add table
Reference in a new issue