diff --git a/misc_test.go b/misc_test.go index d9eae399..f5ac67a7 100644 --- a/misc_test.go +++ b/misc_test.go @@ -1239,9 +1239,8 @@ func TestPluginManager(t *testing.T) { } func TestPhrases(t *testing.T) { - getPhrase := phrases.GetGlobalPermPhrase tp := func(name string, expects string) { - expect(t, getPhrase(name) == expects, "Not the expected phrase") + expect(t, phrases.GetGlobalPermPhrase(name) == expects, "Not the expected phrase") } tp("BanUsers","Can ban users") tp("NoSuchPerm","{lang.perms[NoSuchPerm]}")