Skip to content

Commit 09d1113

Browse files
committed
Bug fix: Remove os.Stat check
1 parent a3b9f68 commit 09d1113

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/cloud_sql_proxy/proxy.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ func parseInstanceConfig(dir, instance string, cl *http.Client) (instanceConfig,
241241
}
242242
if strings.HasPrefix(strings.ToLower(in.DatabaseVersion), "postgres") {
243243
path := filepath.Join(dir, instance)
244-
if _, err := os.Stat(path); !os.IsNotExist(err) {
245-
return instanceConfig{}, err
246-
}
247244
if err := os.MkdirAll(path, 0755); err != nil {
248245
return instanceConfig{}, err
249246
}

0 commit comments

Comments
 (0)