Skip to content

Commit

Permalink
Code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Sep 28, 2022
1 parent 678537a commit 41b88b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func getConfigPath() (string, error) {
}

func createDefaultConfigFile(homeDir, configPath string) error {
if err := os.MkdirAll(homeDir, 0700); err != nil {
if err := os.MkdirAll(homeDir, 0o700); err != nil {
return errors.Wrap(err, "creating the directory")
}
SetDefaults(filepath.Join(homeDir, "kure.db"))
Expand Down Expand Up @@ -129,7 +129,7 @@ func Set(key string, value interface{}) {

// SetDefaults populates the config map with the default values.
func SetDefaults(dbPath string) {
var defaults = map[string]interface{}{
defaults := map[string]interface{}{
"clipboard.timeout": "0s",
"database.path": dbPath,
"editor": "vim",
Expand Down

0 comments on commit 41b88b9

Please sign in to comment.