diff options
author | Anthony HAMON <antham@users.noreply.github.com> | 2018-08-29 13:34:56 +0200 |
---|---|---|
committer | antham <hamonanth@gmail.com> | 2018-08-29 13:46:51 +0200 |
commit | 54326907c38565d970a6d15f685abbac80fcc9ea (patch) | |
tree | 0e50ff1bd91a32fbddcb0a1ad088537dcfdddcec /pkg | |
parent | cda7b374e2b95d4f6b71e896e775bc0d688cc710 (diff) |
fix linting issues
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/updates/updates.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go index ad5dd57b6..5f533e5a0 100644 --- a/pkg/updates/updates.go +++ b/pkg/updates/updates.go @@ -22,7 +22,7 @@ import ( "github.com/sirupsen/logrus" ) -// Update checks for updates and does updates +// Updater checks for updates and does updates type Updater struct { Log *logrus.Entry Config config.AppConfigurer @@ -30,7 +30,7 @@ type Updater struct { Tr *i18n.Localizer } -// Updater implements the check and update methods +// Updaterer implements the check and update methods type Updaterer interface { CheckForNewUpdate() Update() @@ -78,6 +78,7 @@ func (u *Updater) getLatestVersionNumber() (string, error) { return dat["tag_name"].(string), nil } +// RecordLastUpdateCheck records last time an update check was performed func (u *Updater) RecordLastUpdateCheck() error { u.Config.GetAppState().LastUpdateCheck = time.Now().Unix() return u.Config.SaveAppState() |