Skip to content

Commit

Permalink
support empty notes uploads (#228)
Browse files Browse the repository at this point in the history
* Make plural repair fail silently

* fix notes upload
  • Loading branch information
michaeljguarino authored Sep 21, 2022
1 parent fc82977 commit bb59bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (client *client) CreateRepository(name, publisher string, input *gqlclient.
uploads = append(uploads, *darkIconUpload)
}

if input.Notes != nil {
if input.Notes != nil && *input.Notes != "" {
file, _ := filepath.Abs(*input.Notes)
notes, err := fileutils.ReadFile(file)
if err != nil {
Expand Down

0 comments on commit bb59bb2

Please sign in to comment.