From 10509940b15ca1bd5c2d5e6f62766e41f8520601 Mon Sep 17 00:00:00 2001 From: Christopher McArthur Date: Tue, 12 Jul 2022 14:04:13 -0700 Subject: [PATCH] Remove usage of deprecated function --- cmd/ovm/download_recent.go | 2 +- internal/commit.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ovm/download_recent.go b/cmd/ovm/download_recent.go index ce484b1197..a275410e4c 100644 --- a/cmd/ovm/download_recent.go +++ b/cmd/ovm/download_recent.go @@ -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 } diff --git a/internal/commit.go b/internal/commit.go index d832e4bd39..ffbc7eafa9 100644 --- a/internal/commit.go +++ b/internal/commit.go @@ -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 }