From 333137d56dd41f503cf754029e78f241006999ea Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 21 Apr 2020 10:48:24 +1000 Subject: [PATCH] [MISC] Implement final golint recommendations (#888) --- internal/handlers/types.go | 2 +- internal/mocks/mock_authelia_ctx.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/handlers/types.go b/internal/handlers/types.go index 1a3cc0d5a..b42b2889b 100644 --- a/internal/handlers/types.go +++ b/internal/handlers/types.go @@ -11,7 +11,7 @@ type MethodList = []string type authorizationMatching int -// UserInfo is the model of user second factor preferences. +// UserPreferences is the model of user second factor preferences. type UserPreferences struct { // The preferred 2FA method. Method string `json:"method" valid:"required"` diff --git a/internal/mocks/mock_authelia_ctx.go b/internal/mocks/mock_authelia_ctx.go index b3f694834..5d90bdd3c 100644 --- a/internal/mocks/mock_authelia_ctx.go +++ b/internal/mocks/mock_authelia_ctx.go @@ -146,7 +146,7 @@ func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{}) { assert.Equal(t, string(b), string(m.Ctx.Response.Body())) } -// GetResponseData retrieves a response from the service. +// GetResponseData retrieves a response from the service. func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{}) { okResponse := middlewares.OKResponse{} okResponse.Data = data