diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 09:38:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 12:12:57 +1100 |
commit | a34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch) | |
tree | 4de55d492803487a6575c976f89875744a7d3b7b /pkg/config | |
parent | d93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff) |
update linters
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/app_config.go | 4 | ||||
-rw-r--r-- | pkg/config/user_config.go | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 98620ad43..40509e86a 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -123,7 +123,7 @@ func configDirForVendor(vendor string) string { func findOrCreateConfigDir() (string, error) { folder := ConfigDir() - return folder, os.MkdirAll(folder, 0755) + return folder, os.MkdirAll(folder, 0o755) } func loadUserConfigWithDefaults(configFiles []string) (*UserConfig, error) { @@ -249,7 +249,7 @@ func (c *AppConfig) SaveAppState() error { return err } - err = ioutil.WriteFile(filepath, marshalledAppState, 0644) + err = ioutil.WriteFile(filepath, marshalledAppState, 0o644) if err != nil && os.IsPermission(err) { // apparently when people have read-only permissions they prefer us to fail silently return nil diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index ac8a2bbc1..51f443243 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -358,7 +358,8 @@ func GetDefaultConfig() *UserConfig { Paging: PagingConfig{ ColorArg: "always", Pager: "", - UseConfig: false}, + UseConfig: false, + }, Commit: CommitConfig{ SignOff: false, }, |