Skip to content

Commit

Permalink
Remove omitempty from Content field of RepositoryContentFileOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvinranjan-outreach committed Aug 2, 2022
1 parent 3a432d6 commit 5498f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/repos_contents.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type RepositoryContentResponse struct {
// RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.
type RepositoryContentFileOptions struct {
Message *string `json:"message,omitempty"`
Content []byte `json:"content,omitempty"` // unencoded
Content []byte `json:"content"` // unencoded
SHA *string `json:"sha,omitempty"`
Branch *string `json:"branch,omitempty"`
Author *CommitAuthor `json:"author,omitempty"`
Expand Down

0 comments on commit 5498f4f

Please sign in to comment.