Skip to content

Commit bef160d

Browse files
committed
small refactor
1 parent 95d6b5d commit bef160d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/hcl/hcl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ func fillReplicationSpecs(body *hclwrite.Body) error {
8686
}
8787

8888
body.RemoveAttribute(nNumShards) // num_shards in root is not relevant, only in replication_specs
89-
// ok moveAttr to fail as cloud_backup is optional
89+
// ok to fail as cloud_backup is optional
9090
_ = moveAttr(body, body, nCloudBackup, nBackupEnabled, errRepSpecs)
9191

92-
repSpecs := hclwrite.NewEmptyFile()
9392
config, errConfig := getRegionConfigs(configSrc, root)
9493
if errConfig != nil {
9594
return errConfig
9695
}
96+
repSpecs := hclwrite.NewEmptyFile()
9797
repSpecs.Body().SetAttributeRaw(nConfig, config)
9898
body.SetAttributeRaw(nRepSpecs, tokensArrayObject(repSpecs))
9999

0 commit comments

Comments
 (0)