mirror of
https://github.com/pushbits/server.git
synced 2025-08-02 08:09:00 +02:00
Use gofumpt as code formatter
This commit is contained in:
parent
04e29f04d9
commit
0b8d22d293
12 changed files with 23 additions and 30 deletions
|
@ -23,12 +23,11 @@ func ReadConfig(filename string, removeFile bool) (config *configuration.Configu
|
|||
}
|
||||
|
||||
file, err := ioutil.ReadFile(filename)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile("config.yml", file, 0644)
|
||||
err = ioutil.WriteFile("config.yml", file, 0o644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue