VOL-2001 resolve sca errors
Change-Id: Iee4c814e721437c6f2f0d3387cac92be498ceb99
diff --git a/internal/pkg/afrouter/router.go b/internal/pkg/afrouter/router.go
index 7abbceb..f1ac388 100644
--- a/internal/pkg/afrouter/router.go
+++ b/internal/pkg/afrouter/router.go
@@ -17,7 +17,6 @@
package afrouter
import (
- "errors"
"fmt"
"google.golang.org/grpc"
)
@@ -75,6 +74,6 @@
}
return r, err
default:
- return nil, errors.New(fmt.Sprintf("Internal error, undefined router type: %s", config.Type))
+ return nil, fmt.Errorf("Internal error, undefined router type: %s", config.Type)
}
}