mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-12 04:23:20 -05:00
chore: use errors.New to replace fmt.Errorf with no parameters
Signed-off-by: RiceChuan <lc582041246@gmail.com>
This commit is contained in:
parent
89a648c7dd
commit
434ee838dd
@ -2,6 +2,7 @@ package cli
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -68,7 +69,7 @@ func mockOIDC() error {
|
|||||||
|
|
||||||
userStr := os.Getenv("MOCKOIDC_USERS")
|
userStr := os.Getenv("MOCKOIDC_USERS")
|
||||||
if userStr == "" {
|
if userStr == "" {
|
||||||
return fmt.Errorf("MOCKOIDC_USERS not defined")
|
return errors.New("MOCKOIDC_USERS not defined")
|
||||||
}
|
}
|
||||||
|
|
||||||
var users []mockoidc.MockUser
|
var users []mockoidc.MockUser
|
||||||
|
Loading…
Reference in New Issue
Block a user