Skip to content

Commit 1ebbbf2

Browse files
committed
config: add some omitempty tags
These are rarely set, but will start getting exercised more with future changes. Signed-off-by: Hank Donnay <[email protected]>
1 parent 836c057 commit 1ebbbf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/matchers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ type Matchers struct {
2020
// "suse"
2121
// "ubuntu"
2222
// "crda" - remotematcher calls hosted api via RPC.
23-
Names []string `yaml:"names" json:"names"`
23+
Names []string `yaml:"names,omitempty" json:"names,omitempty"`
2424
}

config/updaters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Updaters struct {
77
// TODO(louis): this is only used in clairctl, should we keep this?
88
// it may offer an escape hatch for a particular updater name
99
// from running, vs disabling the updater set completely.
10-
Filter string `yaml:"filter" json:"filter"`
10+
Filter string `yaml:"filter,omitempty" json:"filter,omitempty"`
1111
// Config holds configuration blocks for UpdaterFactories and Updaters,
1212
// keyed by name.
1313
//

0 commit comments

Comments
 (0)