Run go fmt ./...

This commit is contained in:
comp500 2024-08-28 18:26:29 +01:00
parent a0c4aadba0
commit 8d68ac2126
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ func installRelease(repo Repo, release Release, regex string, pack core.Pack) er
Slug: repo.FullName, Slug: repo.FullName,
Tag: release.TagName, 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() 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() }.ToMap()
if err != nil { if err != nil {
return err return err

View File

@ -28,7 +28,7 @@ func (c *ghApiClient) makeGet(url string) (*http.Response, error) {
req.Header.Set("User-Agent", core.UserAgent) req.Header.Set("User-Agent", core.UserAgent)
req.Header.Set("Accept", "application/vnd.github+json") req.Header.Set("Accept", "application/vnd.github+json")
if ghApiToken != "" { if ghApiToken != "" {
req.Header.Set("Authorization", "Bearer " + ghApiToken) req.Header.Set("Authorization", "Bearer "+ghApiToken)
} }
resp, err := c.httpClient.Do(req) resp, err := c.httpClient.Do(req)