Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Adding missing omitempty for maintainer's email and url fields
Browse files Browse the repository at this point in the history
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed Mar 22, 2019
1 parent 94cafca commit a58fa59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ type Maintainer struct {
// Name is a user name or organization name
Name string `json:"name" mapstructure:"name"`
// Email is an optional email address to contact the named maintainer
Email string `json:"email" mapstructure:"email"`
Email string `json:"email,omitempty" mapstructure:"email"`
// Url is an optional URL to an address for the named maintainer
URL string `json:"url" mapstructure:"url"`
URL string `json:"url,omitempty" mapstructure:"url"`
}

// Action describes a custom (non-core) action.
Expand Down

0 comments on commit a58fa59

Please sign in to comment.