From e0543246fa71d8bf714c94b8e6ec64ba8ad86c96 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 16 Jan 2019 11:05:11 -0800 Subject: [PATCH] remove commented code --- builder/amazon/common/access_config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builder/amazon/common/access_config.go b/builder/amazon/common/access_config.go index e1fd8049f..7f45a543e 100644 --- a/builder/amazon/common/access_config.go +++ b/builder/amazon/common/access_config.go @@ -55,10 +55,6 @@ func (c *AccessConfig) Session() (*session.Session, error) { config = config.WithMaxRetries(8) region, _ := c.region() - // if err != nil { - // return nil, fmt.Errorf("Could not get region, "+ - // "probably because it's not set or we're not running on AWS. %s", err) - // } config = config.WithRegion(region) if c.CustomEndpointEc2 != "" {