Replace error string with const

pull/8/head
Anshul Sharma 2018-01-16 14:51:52 +05:30 committed by GitHub
parent 1dbb4197c4
commit 9c591b0c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case "PolicyNotFound":
// TODO change from string to `elb.ErrCodePolicyNotFoundException` once the AWS SDK is updated
case elb.ErrCodePolicyNotFoundException:
default:
return fmt.Errorf("error describing security policies on load balancer: %q", err)
}