Skip to content

Commit 2a56676

Browse files
committed
omitempty for renovate struct fields
1 parent db7fd1f commit 2a56676

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/types/renovate/renovate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ func Config() CustomManager {
2323
type CustomManagers []CustomManager
2424

2525
type CustomManager struct {
26-
CustomType string `json:"customType"`
27-
Description string `json:"description"`
26+
CustomType string `json:"customType,omitempty"`
27+
Description string `json:"description,omitempty"`
2828
ManagerFilePatterns []string `json:"managerFilePatterns,omitempty"`
2929
FileMatch []string `json:"fileMatch,omitempty"`
30-
MatchStrings []string `json:"matchStrings"`
31-
DatasourceTemplate string `json:"datasourceTemplate"`
30+
MatchStrings []string `json:"matchStrings,omitempty"`
31+
DatasourceTemplate string `json:"datasourceTemplate,omitempty"`
3232
}
3333

3434
func (m *CustomManager) UpdateParams() {

0 commit comments

Comments
 (0)