Merge pull request #12168 from cpuguy83/remove_dup_file_creation
Remove duplicate config file creation.
This commit is contained in:
commit
a6d39e2a2d
1 changed files with 0 additions and 9 deletions
|
@ -102,15 +102,6 @@ func (v *Volume) initialize() error {
|
|||
if err := os.MkdirAll(v.configPath, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
jsonPath, err := v.jsonPath()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f, err := os.Create(jsonPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
return v.toDisk()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue