🎨 Replaced empty interfaces to any

This commit is contained in:
Maxim Lebedev 2023-01-16 16:29:40 +06:00
parent 5f05cef767
commit fb93202373
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ func (cs ConfigServer) GetAddress() string {
// GetRootURL returns generated root URL from template RootURL.
func (cs ConfigServer) GetRootURL() string {
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]interface{}{
return fasttemplate.ExecuteString(cs.RootURL, `{{`, `}}`, map[string]any{
"domain": cs.Domain,
"host": cs.Host,
"port": cs.Port,

View File

@ -71,7 +71,7 @@ func NewToken(opts NewTokenOptions) (*Token, error) {
tkn := jwt.New()
for key, val := range map[string]interface{}{
for key, val := range map[string]any{
"nonce": nonce,
"scope": opts.Scope,
jwt.IssuedAtKey: now,
@ -134,7 +134,7 @@ func TestToken(tb testing.TB) *Token {
ScopeEmail,
}
for key, val := range map[string]interface{}{
for key, val := range map[string]any{
// NOTE(toby3d): required
jwt.IssuerKey: cid.String(),
jwt.SubjectKey: me.String(),