diff --git a/domain/redirectdefinition/repository/redirectdefinition.go b/domain/redirectdefinition/repository/redirectdefinition.go index 23318c5..bd0f794 100644 --- a/domain/redirectdefinition/repository/redirectdefinition.go +++ b/domain/redirectdefinition/repository/redirectdefinition.go @@ -36,7 +36,7 @@ func NewRedirectsDefinitionRepository(l *zap.Logger, collection *keelmongo.Colle } } -func NewBaseRedirectsDefinitionRepository(l *zap.Logger, persistor *keelmongo.Persistor) (rs *BaseRedirectsDefinitionRepository, err error) { +func NewBaseRedirectsDefinitionRepository(l *zap.Logger, persistor *keelmongo.Persistor) (*BaseRedirectsDefinitionRepository, error) { collection, cErr := persistor.Collection( "redirects", keelmongo.CollectionWithIndexes(