1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00
This commit is contained in:
Aaron Hill
2014-07-22 17:19:33 -04:00
parent 8f79464eba
commit 59ab19e3b6

View File

@ -44,7 +44,7 @@ func LoadConfig(filename string) (*Config, error) {
return nil, err return nil, err
} }
// if nothing is there, write first conifg file. // if nothing is there, write first config file.
if _, err := os.Stat(filename); os.IsNotExist(err) { if _, err := os.Stat(filename); os.IsNotExist(err) {
WriteFile(filename, []byte(defaultConfigFile)) WriteFile(filename, []byte(defaultConfigFile))
} }