diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:24:47 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-22 17:24:47 +0300 |
commit | cc28c7b65f9aa53a6bb1f0162f6124e1ad5edac2 (patch) | |
tree | dda36235956309fc4fb514632a3ab7cdd18b4abd /config | |
parent | cce79ab7d8481a06054166049876c8a2cbb3418f (diff) |
Gofmt
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go index 41cff41..a81b936 100644 --- a/config/config.go +++ b/config/config.go @@ -21,13 +21,13 @@ import ( "os" "path/filepath" + "encoding/json" "gopkg.in/yaml.v2" + "maunium.net/go/gomatrix" "maunium.net/go/gomuks/debug" - "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/matrix/pushrules" - "encoding/json" + "maunium.net/go/gomuks/matrix/rooms" "strings" - "maunium.net/go/gomatrix" ) // Config contains the main config of gomuks. @@ -261,7 +261,7 @@ func (config *Config) SaveRooms() { if config.nosave { return } - + os.MkdirAll(config.StateDir, 0700) for _, room := range config.Rooms { path := config.getRoomCachePath(room) |