1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-21 22:43:27 +02:00

fix linting issues

This commit is contained in:
Anthony HAMON 2018-08-29 13:34:56 +02:00 committed by antham
parent cda7b374e2
commit 54326907c3

View File

@ -22,7 +22,7 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
// Update checks for updates and does updates // Updater checks for updates and does updates
type Updater struct { type Updater struct {
Log *logrus.Entry Log *logrus.Entry
Config config.AppConfigurer Config config.AppConfigurer
@ -30,7 +30,7 @@ type Updater struct {
Tr *i18n.Localizer Tr *i18n.Localizer
} }
// Updater implements the check and update methods // Updaterer implements the check and update methods
type Updaterer interface { type Updaterer interface {
CheckForNewUpdate() CheckForNewUpdate()
Update() Update()
@ -78,6 +78,7 @@ func (u *Updater) getLatestVersionNumber() (string, error) {
return dat["tag_name"].(string), nil return dat["tag_name"].(string), nil
} }
// RecordLastUpdateCheck records last time an update check was performed
func (u *Updater) RecordLastUpdateCheck() error { func (u *Updater) RecordLastUpdateCheck() error {
u.Config.GetAppState().LastUpdateCheck = time.Now().Unix() u.Config.GetAppState().LastUpdateCheck = time.Now().Unix()
return u.Config.SaveAppState() return u.Config.SaveAppState()