mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Run go fmt ./...
This commit is contained in:
parent
a0c4aadba0
commit
8d68ac2126
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user