mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-12 01:16: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,
|
||||
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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user