From f29cf9d36b87efc8c360dbe8f6c1093e5df26125 Mon Sep 17 00:00:00 2001 From: mo1ein Date: Tue, 13 Sep 2022 21:27:53 +0430 Subject: [PATCH] Fix unhandled error in actions_artifacts_test.go --- github/actions_artifacts_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/github/actions_artifacts_test.go b/github/actions_artifacts_test.go index e35a873bc0a..56c13c77d32 100644 --- a/github/actions_artifacts_test.go +++ b/github/actions_artifacts_test.go @@ -334,7 +334,10 @@ func TestActionsService_DownloadArtifact_StatusMovedPermanently_dontFollowRedire }) ctx := context.Background() - _, resp, _ := client.Actions.DownloadArtifact(ctx, "o", "r", 1, false) + _, resp, err := client.Actions.DownloadArtifact(ctx, "o", "r", 1, false) + if err != nil { + t.Errorf("Actions.DownloadArtifact returned error: %v", err) + } if resp.StatusCode != http.StatusMovedPermanently { t.Errorf("Actions.DownloadArtifact return status %d, want %d", resp.StatusCode, http.StatusMovedPermanently) }