From 107503c90301a1bfd035f61a5155c572e800f5af Mon Sep 17 00:00:00 2001 From: Davyd McColl Date: Wed, 9 Jun 2021 20:47:29 +0200 Subject: [PATCH] :art: alternative syntax --- pkg/gui/quitting.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/gui/quitting.go b/pkg/gui/quitting.go index 7509589ac..a2dee1a2a 100644 --- a/pkg/gui/quitting.go +++ b/pkg/gui/quitting.go @@ -31,13 +31,13 @@ func (gui *Gui) handleQuitWithoutChangingDirectory() error { func (gui *Gui) toggleWhitespaceInDiffView() error { gui.State.IgnoreWhitespaceInDiffView = !gui.State.IgnoreWhitespaceInDiffView - var toastMessage string + + toastMessage := gui.Tr.ShowingWhitespaceInDiffView if gui.State.IgnoreWhitespaceInDiffView { toastMessage = gui.Tr.IgnoringWhitespaceInDiffView - } else { - toastMessage = gui.Tr.ShowingWhitespaceInDiffView } gui.raiseToast(toastMessage) + return gui.refreshFilesAndSubmodules() }