diff --git a/internal/oauth2.go b/internal/oauth2.go index fbe1028..e31541b 100644 --- a/internal/oauth2.go +++ b/internal/oauth2.go @@ -42,7 +42,7 @@ func ParseKey(key []byte) (*rsa.PrivateKey, error) { func ParseINI(ini io.Reader) (map[string]map[string]string, error) { result := map[string]map[string]string{ - "": map[string]string{}, // root section + "": {}, // root section } scanner := bufio.NewScanner(ini) currentSection := "" diff --git a/internal/oauth2_test.go b/internal/oauth2_test.go index c615855..0aafc7f 100644 --- a/internal/oauth2_test.go +++ b/internal/oauth2_test.go @@ -23,8 +23,8 @@ bar = hop ini = nin `, map[string]map[string]string{ - "": map[string]string{"root": "toor"}, - "foo": map[string]string{"bar": "hop", "ini": "nin"}, + "": {"root": "toor"}, + "foo": {"bar": "hop", "ini": "nin"}, }, }, { @@ -33,9 +33,9 @@ ini = nin empty= `, map[string]map[string]string{ - "": map[string]string{}, - "empty": map[string]string{}, - "section": map[string]string{"empty": ""}, + "": {}, + "empty": {}, + "section": {"empty": ""}, }, }, { @@ -45,7 +45,7 @@ empty= ;comment=true `, map[string]map[string]string{ - "": map[string]string{}, + "": {}, }, }, }