Skip to content

Commit 9a9c906

Browse files
committed
refactor isFreeTier
1 parent bb76598 commit 9a9c906

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
@@ -62,8 +62,8 @@ func ClusterToAdvancedCluster(config []byte) ([]byte, error) {
6262
return parser.Bytes(), nil
6363
}
6464

65-
func isFreeTier(resourceBody *hclwrite.Body) bool {
66-
return resourceBody.FirstMatchingBlock(strReplicationSpecs, nil) == nil
65+
func isFreeTier(body *hclwrite.Body) bool {
66+
return body.FirstMatchingBlock(strReplicationSpecs, nil) == nil
6767
}
6868

6969
func fillFreeTier(body *hclwrite.Body) error {

0 commit comments

Comments
 (0)