mirror of https://github.com/docker/docs.git
Merge pull request #12168 from cpuguy83/remove_dup_file_creation
Remove duplicate config file creation.
This commit is contained in:
commit
a6d39e2a2d
|
@ -102,15 +102,6 @@ func (v *Volume) initialize() error {
|
||||||
if err := os.MkdirAll(v.configPath, 0755); err != nil {
|
if err := os.MkdirAll(v.configPath, 0755); err != nil {
|
||||||
return err
|
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()
|
return v.toDisk()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue