modify method to check for cli updates

This commit is contained in:
Maidul Islam
2023-02-02 12:58:05 -08:00
parent 3ccc6e5d5c
commit 44b2bc1795
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -2,10 +2,10 @@ package util
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"errors"
)
func CheckForUpdate() {
@@ -42,5 +42,5 @@ func getLatestTag(repoOwner string, repoName string) (string, error) {
json.Unmarshal(body, &tags)
return tags[0].Name, nil
return tags[0].Name[1:], nil
}