remove duplicate region check error

This commit is contained in:
Adrien Delorme 2018-10-26 17:44:56 +02:00
parent 16aa21dffe
commit f4fbf45349
1 changed files with 0 additions and 2 deletions

View File

@ -78,8 +78,6 @@ func (c *AccessConfig) Session() (*session.Session, error) {
if sess, err := session.NewSessionWithOptions(opts); err != nil {
return nil, err
} else if *sess.Config.Region == "" {
return nil, fmt.Errorf("Could not find AWS region, make sure it's set.")
} else {
log.Printf("Found region %s", *sess.Config.Region)
c.session = sess