1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-29 22:48:19 +02:00

Updated linters

This commit is contained in:
kvanzuijlen
2023-10-24 16:31:32 +02:00
parent 8d03adfd04
commit e13a5048eb
9 changed files with 18 additions and 22 deletions

View File

@@ -7,18 +7,18 @@ import (
type NoOpLock struct{}
func (l *NoOpLock) Obtain(ctx context.Context, expiration time.Duration) error {
func (l *NoOpLock) Obtain(_ context.Context, _ time.Duration) error {
return nil
}
func (l *NoOpLock) Peek(ctx context.Context) (bool, error) {
func (l *NoOpLock) Peek(_ context.Context) (bool, error) {
return false, nil
}
func (l *NoOpLock) Refresh(ctx context.Context, expiration time.Duration) error {
func (l *NoOpLock) Refresh(_ context.Context, _ time.Duration) error {
return nil
}
func (l *NoOpLock) Release(ctx context.Context) error {
func (l *NoOpLock) Release(_ context.Context) error {
return nil
}