Skip to content

Commit

Permalink
Additional error check
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jul 12, 2021
1 parent 4682992 commit ef5e71f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/updatecheck/updateCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ func StartUpdateChecker(currentVersion string, currentCommit string, cfg *config
func actualCheckForUpdate(payload updateRequest) {
jsonUpdateRequest, err := json.Marshal(payload)

req, err := http.NewRequest("POST", "http://update-check.olivetin.app", bytes.NewReader(jsonUpdateRequest))
if err != nil {
log.Errorf("Update check failed %v", err)
return
}

req, err := http.NewRequest("POST", "http://update-check.olivetin.app", bytes.NewBuffer(jsonUpdateRequest))

if err != nil {
log.Errorf("Update check failed %v", err)
Expand Down

0 comments on commit ef5e71f

Please sign in to comment.