mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-24 11:15:43 +08:00
@ -44,7 +44,7 @@ func LoadConfig(filename string) (*Config, error) {
|
||||
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) {
|
||||
WriteFile(filename, []byte(defaultConfigFile))
|
||||
}
|
||||
|
Reference in New Issue
Block a user