Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
chore: add linebreaks for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Oct 5, 2022
1 parent 48d5452 commit 1b7e8df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (c *Updater) CheckHasUpdate() bool {

sha, err := c.getSelfSha256()
if err != nil {
fmt.Printf("cannot get executable sha256, %s", currentVersionWillBeUsed)
fmt.Printf("cannot get executable sha256, %s\n", currentVersionWillBeUsed)
return false
}

Expand All @@ -63,20 +63,20 @@ func (c *Updater) CheckHasUpdate() bool {
}

if sha256Asset == nil {
fmt.Printf("cannot find sha256 asset in latest release, %s", currentVersionWillBeUsed)
fmt.Printf("cannot find sha256 asset in latest release, %s\n", currentVersionWillBeUsed)
return false
}

res, err := http.Get(sha256Asset.DownloadUrl)
if err != nil {
fmt.Printf("cannot download sha256 of latest release, %s", currentVersionWillBeUsed)
fmt.Printf("cannot download sha256 of latest release, %s\n", currentVersionWillBeUsed)
return false
}

sha256Bytes, err := io.ReadAll(res.Body)
defer res.Body.Close()
if err != nil {
fmt.Printf("cannot read sha256 of latest release, %s", currentVersionWillBeUsed)
fmt.Printf("cannot read sha256 of latest release, %s\n", currentVersionWillBeUsed)
return false
}

Expand Down

0 comments on commit 1b7e8df

Please sign in to comment.