Skip to content

Commit

Permalink
config: add some omitempty tags
Browse files Browse the repository at this point in the history
These are rarely set, but will start getting exercised more with future
changes.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Jun 15, 2023
1 parent 836c057 commit 1ebbbf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ type Matchers struct {
// "suse"
// "ubuntu"
// "crda" - remotematcher calls hosted api via RPC.
Names []string `yaml:"names" json:"names"`
Names []string `yaml:"names,omitempty" json:"names,omitempty"`
}
2 changes: 1 addition & 1 deletion config/updaters.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Updaters struct {
// TODO(louis): this is only used in clairctl, should we keep this?
// it may offer an escape hatch for a particular updater name
// from running, vs disabling the updater set completely.
Filter string `yaml:"filter" json:"filter"`
Filter string `yaml:"filter,omitempty" json:"filter,omitempty"`
// Config holds configuration blocks for UpdaterFactories and Updaters,
// keyed by name.
//
Expand Down

0 comments on commit 1ebbbf2

Please sign in to comment.