don't shadow package name

This commit is contained in:
Matthew Hooker 2017-11-07 16:05:43 -08:00
parent f681faa296
commit 0a24f4eb2e
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 4 additions and 4 deletions

View File

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