diff --git a/keybase/platform_linux.go b/keybase/platform_linux.go index 9bc48afd..56456055 100644 --- a/keybase/platform_linux.go +++ b/keybase/platform_linux.go @@ -98,7 +98,7 @@ func (c context) BeforeUpdatePrompt(update updater.Update, options updater.Updat if err != nil { c.log.Warningf("Error running notify-send: %s (%s)", err, result.CombinedOutput()) } - c.ReportAction(UpdateActionResponse{updater.UpdateActionSnooze, false, 0}, &update, options) + c.ReportAction(UpdatePromptResponse{updater.UpdateActionSnooze, false, 0}, &update, options) return updater.CancelErr(fmt.Errorf("Linux uses system package manager")) } diff --git a/update_checker_test.go b/update_checker_test.go index 8f787241..df75f82a 100644 --- a/update_checker_test.go +++ b/update_checker_test.go @@ -75,7 +75,7 @@ func (u testUpdateCheckUI) UpdateOptions() UpdateOptions { return newDefaultTestUpdateOptions() } -func (u testUpdateCheckUI) ReportAction(_ UpdateActionResponse, _ *Update, _ UpdateOptions) {} +func (u testUpdateCheckUI) ReportAction(_ UpdatePromptResponse, _ *Update, _ UpdateOptions) {} func (u testUpdateCheckUI) ReportError(_ error, _ *Update, _ UpdateOptions) {} diff --git a/updater_test.go b/updater_test.go index 01f20994..317411e5 100644 --- a/updater_test.go +++ b/updater_test.go @@ -98,7 +98,7 @@ func (u *testUpdateUI) ReportError(err error, update *Update, options UpdateOpti u.errReported = err } -func (u *testUpdateUI) ReportAction(actionResponse UpdateActionResponse, update *Update, options UpdateOptions) { +func (u *testUpdateUI) ReportAction(actionResponse UpdatePromptResponse, update *Update, options UpdateOptions) { u.actionReported = actionResponse.action autoUpdate, _ := u.cfg.GetUpdateAuto() u.autoUpdateReported = autoUpdate