From 5451f6c1d3a7cc43aa02ad6c1820c4d4ec14d3e2 Mon Sep 17 00:00:00 2001 From: Moein Halvaei <50274938+mo1ein@users.noreply.github.com> Date: Tue, 13 Sep 2022 18:23:51 +0430 Subject: [PATCH] Fix code style --- github/actions_artifacts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github/actions_artifacts.go b/github/actions_artifacts.go index 4320ea74b2..370bedf53c 100644 --- a/github/actions_artifacts.go +++ b/github/actions_artifacts.go @@ -121,9 +121,9 @@ func (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo strin } parsedURL, err := url.Parse(resp.Header.Get("Location")) - if err != nil { - return nil, nil, err - } + if err != nil { + return nil, nil, err + } return parsedURL, newResponse(resp), nil }