mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
core/ci: fix linting issues (#4856)
This commit is contained in:
parent
a2fd95aae6
commit
ddc9d957ba
3 changed files with 1 additions and 5 deletions
|
@ -11,9 +11,7 @@ import (
|
||||||
"github.com/pomerium/pomerium/pkg/protoutil"
|
"github.com/pomerium/pomerium/pkg/protoutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var sessionTypeURL = protoutil.GetTypeURL(new(session.Session))
|
||||||
sessionTypeURL = protoutil.GetTypeURL(new(session.Session))
|
|
||||||
)
|
|
||||||
|
|
||||||
// CurrentUsers returns a list of users active within the current UTC day
|
// CurrentUsers returns a list of users active within the current UTC day
|
||||||
func CurrentUsers(
|
func CurrentUsers(
|
||||||
|
|
|
@ -26,7 +26,6 @@ func (e *RequestIDError) Unwrap() error {
|
||||||
|
|
||||||
// Is implements errors.Is for RequestIDError
|
// Is implements errors.Is for RequestIDError
|
||||||
func (e *RequestIDError) Is(err error) bool {
|
func (e *RequestIDError) Is(err error) bool {
|
||||||
//nolint:errorlint
|
|
||||||
_, ok := err.(*RequestIDError)
|
_, ok := err.(*RequestIDError)
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ func (e *terminalError) Unwrap() error {
|
||||||
|
|
||||||
// Is implements errors.Is for terminalError
|
// Is implements errors.Is for terminalError
|
||||||
func (e *terminalError) Is(err error) bool {
|
func (e *terminalError) Is(err error) bool {
|
||||||
//nolint:errorlint
|
|
||||||
_, ok := err.(*terminalError)
|
_, ok := err.(*terminalError)
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue