From 8d68ac212632d3a5a3ea0e1da23b83a7724bd220 Mon Sep 17 00:00:00 2001 From: comp500 Date: Wed, 28 Aug 2024 18:26:29 +0100 Subject: [PATCH] Run go fmt ./... --- github/install.go | 2 +- github/request.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/github/install.go b/github/install.go index ab6a777..271f302 100644 --- a/github/install.go +++ b/github/install.go @@ -161,7 +161,7 @@ func installRelease(repo Repo, release Release, regex string, pack core.Pack) er Slug: repo.FullName, Tag: release.TagName, Branch: release.TargetCommitish, // TODO: if no branch is specified by the user, we shouldn't record it - in order to remain branch-agnostic in getLatestRelease() - Regex: regex, // TODO: ditto! + Regex: regex, // TODO: ditto! }.ToMap() if err != nil { return err diff --git a/github/request.go b/github/request.go index 7604ffe..ae9d02a 100644 --- a/github/request.go +++ b/github/request.go @@ -28,7 +28,7 @@ func (c *ghApiClient) makeGet(url string) (*http.Response, error) { req.Header.Set("User-Agent", core.UserAgent) req.Header.Set("Accept", "application/vnd.github+json") if ghApiToken != "" { - req.Header.Set("Authorization", "Bearer " + ghApiToken) + req.Header.Set("Authorization", "Bearer "+ghApiToken) } resp, err := c.httpClient.Do(req)