Skip to content
Snippets Groups Projects
Commit 326976d6 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Return a concrete type

parent d518a321
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ type Config struct { ...@@ -26,7 +26,7 @@ type Config struct {
} }
// New creates a new Gitlab provider from a configuration. // New creates a new Gitlab provider from a configuration.
func New(c *config.Auth) (auth.Provider, error) { func New(c *config.Auth) (*Config, error) {
uw := make(map[string]bool) uw := make(map[string]bool)
for _, u := range c.UsersWhitelist { for _, u := range c.UsersWhitelist {
uw[u] = true uw[u] = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment