Skip to content

Commit 76e3aef

Browse files
committed
fix
1 parent 221fb57 commit 76e3aef

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tui/update.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// are spawned, since exec replaces the current image but does not touch
2727
// children.
2828
func CheckAndSelfUpdate(currentVersion string) {
29-
if currentVersion == "" || currentVersion == "dev" {
29+
if currentVersion == "dev" {
3030
return
3131
}
3232
exePath, ok := detectNpmInstall()
@@ -78,8 +78,7 @@ func detectNpmInstall() (string, bool) {
7878
}
7979

8080
// fetchLatestVersion queries the GitHub releases API for the most recent tag
81-
// (with the leading "v" stripped). Used by both the pre-TUI self-update and
82-
// the in-TUI banner check.
81+
// (with the leading "v" stripped)
8382
func fetchLatestVersion() (string, bool) {
8483
client := &http.Client{Timeout: 3 * time.Second}
8584
resp, err := client.Get("https://api.github.com/repos/njyeung/reels/releases/latest")

0 commit comments

Comments
 (0)