1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-26 03:17:47 +02:00

IsNew() compares commit, not version

This commit is contained in:
Harvey Tindall 2021-03-07 17:24:45 +00:00
parent 21490faa9e
commit 7bd8fadf76
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -201,7 +201,7 @@ func (ud *Updater) GetTag() (Tag, int, error) {
} }
func (t *Tag) IsNew() bool { func (t *Tag) IsNew() bool {
return t.Version != version return t.Version != commit
} }
func (ud *Updater) getRelease() (release GHRelease, status int, err error) { func (ud *Updater) getRelease() (release GHRelease, status int, err error) {