Skip to content

Commit

Permalink
Remove omitempty from Content field of RepositoryContentFileOptions (#…
Browse files Browse the repository at this point in the history
…2430)

Fixes: #2427
  • Loading branch information
Ashvin-Ranjan committed Aug 2, 2022
1 parent 3a432d6 commit aff6c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/repos_contents.go
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 aff6c4b

Please sign in to comment.