Skip to content

Commit

Permalink
[MISC] Implement final golint recommendations (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightah committed Apr 21, 2020
1 parent b12d9d4 commit 333137d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/handlers/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion internal/mocks/mock_authelia_ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 333137d

Please sign in to comment.