Skip to content

Commit ab7e5c8

Browse files
Go: Remove redundant error check (#7307)
Co-authored-by: Jason Q <[email protected]>
1 parent e0f4f27 commit ab7e5c8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)