mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
appease linter
This commit is contained in:
@ -18,7 +18,7 @@ func NewUpdateHelper(c *HelperCommon, updater *updates.Updater) *UpdateHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *UpdateHelper) CheckForUpdateInBackground() error {
|
func (self *UpdateHelper) CheckForUpdateInBackground() {
|
||||||
self.updater.CheckForNewUpdate(func(newVersion string, err error) error {
|
self.updater.CheckForNewUpdate(func(newVersion string, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// ignoring the error for now so that I'm not annoying users
|
// ignoring the error for now so that I'm not annoying users
|
||||||
@ -34,8 +34,6 @@ func (self *UpdateHelper) CheckForUpdateInBackground() error {
|
|||||||
}
|
}
|
||||||
return self.showUpdatePrompt(newVersion)
|
return self.showUpdatePrompt(newVersion)
|
||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *UpdateHelper) CheckForUpdateInForeground() error {
|
func (self *UpdateHelper) CheckForUpdateInForeground() error {
|
||||||
|
@ -827,15 +827,6 @@ func (gui *Gui) onUIThread(f func() error) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) startBackgroundRoutines() {
|
|
||||||
mgr := &BackgroundRoutineMgr{gui: gui}
|
|
||||||
mgr.startBackgroundRoutines()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map[string]boxlayout.Dimensions {
|
func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map[string]boxlayout.Dimensions {
|
||||||
return gui.helpers.WindowArrangement.GetWindowDimensions(informationStr, appStatus)
|
return gui.helpers.WindowArrangement.GetWindowDimensions(informationStr, appStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) popContext() error {
|
|
||||||
return gui.State.ContextMgr.Pop()
|
|
||||||
}
|
|
||||||
|
@ -146,7 +146,3 @@ func (gui *Gui) refreshMainViews(opts types.RefreshMainOpts) error {
|
|||||||
func (gui *Gui) splitMainPanel(splitMainPanel bool) {
|
func (gui *Gui) splitMainPanel(splitMainPanel bool) {
|
||||||
gui.State.SplitMainPanel = splitMainPanel
|
gui.State.SplitMainPanel = splitMainPanel
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) isMainPanelSplit() bool {
|
|
||||||
return gui.State.SplitMainPanel
|
|
||||||
}
|
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
// in the custom command's template strings
|
// in the custom command's template strings
|
||||||
type SessionStateLoader struct {
|
type SessionStateLoader struct {
|
||||||
c *helpers.HelperCommon
|
c *helpers.HelperCommon
|
||||||
helpers *helpers.Helpers
|
|
||||||
refsHelper *helpers.RefsHelper
|
refsHelper *helpers.RefsHelper
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user