Skip to content

Commit 10c53f6

Browse files
committed
Remove redundant CloudFormationOperationsClient type alias
Clean up unnecessary type alias that was creating confusion: - Remove: type CloudFormationOperationsClient = CloudFormationOperations - Update: NewCloudFormationClient() to return CloudFormationOperations directly - Clean up formatting (remove extra blank lines) Simplifies code architecture and removes confusing indirection. All functionality preserved, cleaner interface usage.
1 parent 767f744 commit 10c53f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/aws/client.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ import (
1313
"github.com/aws/aws-sdk-go-v2/service/cloudformation"
1414
)
1515

16-
// CloudFormationOperationsClient is an alias for the AWS CloudFormation operations
17-
type CloudFormationOperationsClient = CloudFormationOperations
18-
1916
// DefaultClient provides a high-level interface for AWS operations
2017
type DefaultClient struct {
2118
config aws.Config
@@ -68,7 +65,7 @@ func (c *DefaultClient) Region() string {
6865
}
6966

7067
// NewCloudFormationClient creates a new CloudFormation client with default AWS configuration
71-
func NewCloudFormationClient(ctx context.Context) (CloudFormationOperationsClient, error) {
68+
func NewCloudFormationClient(ctx context.Context) (CloudFormationOperations, error) {
7269
// Load default AWS configuration
7370
awsCfg, err := config.LoadDefaultConfig(ctx)
7471
if err != nil {

0 commit comments

Comments
 (0)