Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Remove usage of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher McArthur committed Jul 12, 2022
1 parent 4cfc7ea commit 1050994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ovm/download_recent.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func GetOvmPngFromThisWeek(context context.Context, client *pending_review.Clien
snapshots := make([]image.Image, 0, 7)

for _, commit := range commits {
fileContent, err := internal.GetDataFileAtRef(context, client, "open-versus-merged.png", commit.GetSHA())
fileContent, err := internal.GetFileAtRef(context, client, "open-versus-merged.png", commit.GetSHA())
if err != nil {
return snapshots, err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func GetJSONFile(context context.Context, client *pending_review.Client, file st

// UpdateDataFileAtRef commits the new content if it's different. It returns if the modification took place and any error encountered.
func UpdateFileAtRef(context context.Context, client *pending_review.Client, file string, branch string, content []byte) (bool, error) {
fileContent, err := GetDataFileAtRef(context, client, file, branch)
fileContent, err := GetFileAtRef(context, client, file, branch)
if err != nil {
return false, err
}
Expand Down

0 comments on commit 1050994

Please sign in to comment.