Skip to content

Commit

Permalink
fix(lint) Remove unused parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre PÉRONNET <[email protected]>
  • Loading branch information
holyhope committed Mar 8, 2024
1 parent 27ff2a9 commit 973c9bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion login/chrome/login_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *chromeMethod) newChromeLogin(
c.ContextOptions = append(c.ContextOptions,
chromedp.WithErrorf(chrome.errorLogger.Printf),
chromedp.WithLogf(chrome.infoLogger.Printf),
chromedp.WithDebugf(func(s string, i ...interface{}) {
chromedp.WithDebugf(func(_ string, _ ...interface{}) {
// do nothing
}),
)
Expand Down
2 changes: 1 addition & 1 deletion login/chrome/screen_otp.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *otpScreen) Do(ctx context.Context) error {

if err := (&chromedp.Tasks{
// OTP not enabled, skip the screen
chromedp.QueryAfter(`#linkLater`, func(ctx context.Context, eci runtime.ExecutionContextID, n ...*cdp.Node) error {
chromedp.QueryAfter(`#linkLater`, func(ctx context.Context, _ runtime.ExecutionContextID, n ...*cdp.Node) error {
if len(n) == 0 {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion login/oauth/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func newServer(manager oauth2.Manager, config *server.Config, listener net.Liste

oauthServer.SetAllowGetAccessRequest(true)

oauthServer.UserAuthorizationHandler = func(w http.ResponseWriter, r *http.Request) (string, error) {
oauthServer.UserAuthorizationHandler = func(_ http.ResponseWriter, r *http.Request) (string, error) {
if err := r.ParseForm(); err != nil {
return "", oautherrs.ErrInvalidRequest
}
Expand Down
2 changes: 1 addition & 1 deletion login/oauth/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ = Describe("Server", func() {
},
}

loginMethod := func(ctx context.Context, creds *login.Credentials) (*oauth2.Token, []*http.Cookie, error) {
loginMethod := func(_ context.Context, creds *login.Credentials) (*oauth2.Token, []*http.Cookie, error) {
Expect(creds).To(Equal(&login.Credentials{
Username: Username,
Password: Password,
Expand Down

0 comments on commit 973c9bc

Please sign in to comment.