mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-07 01:09:45 +02:00
fix linting issues
This commit is contained in:
@ -190,6 +190,7 @@ func (c *AppConfig) SaveAppState() error {
|
|||||||
return ioutil.WriteFile(filepath, marshalledAppState, 0644)
|
return ioutil.WriteFile(filepath, marshalledAppState, 0644)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LoadAppState loads recorded AppState from file
|
||||||
func (c *AppConfig) LoadAppState() error {
|
func (c *AppConfig) LoadAppState() error {
|
||||||
filepath, err := prepareConfigFile("state.yml")
|
filepath, err := prepareConfigFile("state.yml")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -205,6 +206,7 @@ func (c *AppConfig) LoadAppState() error {
|
|||||||
return yaml.Unmarshal(appStateBytes, c.AppState)
|
return yaml.Unmarshal(appStateBytes, c.AppState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetDefaultConfig returns the application default configuration
|
||||||
func GetDefaultConfig() []byte {
|
func GetDefaultConfig() []byte {
|
||||||
return []byte(
|
return []byte(
|
||||||
`gui:
|
`gui:
|
||||||
|
Reference in New Issue
Block a user