File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import (
2626// are spawned, since exec replaces the current image but does not touch
2727// children.
2828func 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)
8382func 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" )
You can’t perform that action at this time.
0 commit comments