Skip to content

Commit

Permalink
Do not add MainRoot or FirstParty to veracode.json if they are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy Baukema committed Apr 21, 2023
1 parent 056263b commit a1655b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions veracodejson.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ func CreateEmptyVeracodeJsonFileIfNotExists(file string) error {
}

type VeracodeJson struct {
MainRoot string
MainPkgName string
FirstParty []string
MainRoot string `json:"MainRoot,omitempty"`
MainPkgName string `json:"MainPkgName,omitempty"`
FirstParty []string `json:"FirstParty,omitempty"`
}

func NewVeracodeJson() VeracodeJson {
Expand Down

0 comments on commit a1655b2

Please sign in to comment.