Skip to content

Commit 033a2dd

Browse files
committed
warning fix
1 parent dcc8146 commit 033a2dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/bundle/deployment/migrate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env va
7272

7373
_, localPath := b.StateFilenameDirect(ctx)
7474
tempStatePath := localPath + ".temp-migration"
75-
if _, err := os.Stat(tempStatePath); err == nil {
76-
return fmt.Errorf("Temporary state file %s already exists, another migration is in progress or was interrupated. In the latter case, delete the file.", tempStatePath)
75+
if _, err = os.Stat(tempStatePath); err == nil {
76+
return fmt.Errorf("temporary state file %s already exists, another migration is in progress or was interrupated. In the latter case, delete the file.", tempStatePath)
7777
}
78-
if _, err := os.Stat(localPath); err == nil {
79-
return fmt.Errorf("State file %s already exists", localPath)
78+
if _, err = os.Stat(localPath); err == nil {
79+
return fmt.Errorf("state file %s already exists", localPath)
8080
}
8181

8282
state := make(map[string]dstate.ResourceEntry)

0 commit comments

Comments
 (0)