mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-19 02:10:04 +09: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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue