Explorar o código

Merge pull request #12168 from cpuguy83/remove_dup_file_creation

Remove duplicate config file creation.
Arnaud Porterie %!s(int64=10) %!d(string=hai) anos
pai
achega
a6d39e2a2d
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      volumes/volume.go

+ 0 - 9
volumes/volume.go

@@ -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()
 }
 }