Skip to content

Commit ab7e5c8

Browse files
Go: Remove redundant error check (#7307)
Co-authored-by: Jason Q <81179619+beqqrry-aws@users.noreply.github.com>
1 parent e0f4f27 commit ab7e5c8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

gov2/cloudfront/CreateDistribution/CreateDistribution.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ func (c *CFDistributionAPIImpl) CreateDistribution(ctx context.Context, bucketNa
4646
}
4747
originDomain := bucketName + ".s3." + string(locationOutput.LocationConstraint) + ".amazonaws.com"
4848

49-
if err != nil {
50-
return nil, err
51-
}
52-
5349
originAccessIdentityID, err := c.createoriginAccessIdentity(ctx, domain)
5450
if err != nil {
5551
return nil, err

0 commit comments

Comments
 (0)