Merged in feature/linting (pull request #168)
Linting Updates * precommit * smallerchecks * govuln
This commit is contained in:
@@ -44,7 +44,7 @@ type BaseConfig struct {
|
||||
// experimental since it is not used yet and may pose cyclical dependency issues
|
||||
// in handlers that are called by the generated
|
||||
// swagger code. This needs to be verified.
|
||||
//func GetConfigFromContext(ctx echo.Context) (Config, error) {
|
||||
// func GetConfigFromContext(ctx echo.Context) (Config, error) {
|
||||
// cfg, ok := ctx.Get(configContextKey).(Config)
|
||||
// if !ok {
|
||||
// return nil, errors.New("config not found in context")
|
||||
@@ -170,13 +170,13 @@ func New(ctx context.Context, cfg Config) (*Server, error) {
|
||||
// Put this in when refactoring is done and remove from main.go
|
||||
|
||||
//// This must be done before the rbac.InitializeAuthProvider then remove from main.go for service.
|
||||
//errInitializingConfig := serviceconfig.InitializeConfig(cfg)
|
||||
//if errInitializingConfig != nil {
|
||||
// errInitializingConfig := serviceconfig.InitializeConfig(cfg)
|
||||
// if errInitializingConfig != nil {
|
||||
// return nil, errInitializingConfig
|
||||
//}
|
||||
//
|
||||
//// Initialize the rbac config here since only the API service needs it
|
||||
//errorGettingAuthProvider := rbac.InitializeAuthProvider(cfg.GetAuthConfig())
|
||||
// errorGettingAuthProvider := rbac.InitializeAuthProvider(cfg.GetAuthConfig())
|
||||
//if errorGettingAuthProvider != nil {
|
||||
// return nil, errorGettingAuthProvider
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user