File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type RepoLicense struct { //revive:disable-line:exported
2727type RepoLicenseList []* RepoLicense //revive:disable-line:exported
2828
2929func (rll RepoLicenseList ) StringList () []string {
30- var licenses []string
30+ var licenses []string = make ([] string , 0 , len ( rll ))
3131 for _ , rl := range rll {
3232 licenses = append (licenses , rl .License )
3333 }
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ type Repository struct {
114114 ObjectFormatName string `json:"object_format_name"`
115115 // swagger:strfmt date-time
116116 MirrorUpdated time.Time `json:"mirror_updated"`
117- RepoTransfer * RepoTransfer `json:"repo_transfer"`
117+ RepoTransfer * RepoTransfer `json:"repo_transfer,omitempty "`
118118 Topics []string `json:"topics"`
119119 Licenses []string `json:"licenses"`
120120}
You can’t perform that action at this time.
0 commit comments