From 4111bee0c433d158d7a93a2b0d895e24b9395f42 Mon Sep 17 00:00:00 2001 From: Hunter Kehoe Date: Sun, 7 Apr 2024 21:40:24 -0600 Subject: [PATCH] fix linting issue --- user/types_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/user/types_test.go b/user/types_test.go index cd61977b..690fddf3 100644 --- a/user/types_test.go +++ b/user/types_test.go @@ -64,12 +64,12 @@ func TestTierContext(t *testing.T) { func TestUsernameRegex(t *testing.T) { username := "phil" - username_email := "phil@ntfy.sh" - username_email_alias := "phil+alias@ntfy.sh" - username_invalid := "phil\rocks" + usernameEmail := "phil@ntfy.sh" + usernameEmailAlias := "phil+alias@ntfy.sh" + usernameInvalid := "phil\rocks" require.True(t, AllowedUsername(username)) - require.True(t, AllowedUsername(username_email)) - require.True(t, AllowedUsername(username_email_alias)) - require.False(t, AllowedUsername(username_invalid)) + require.True(t, AllowedUsername(usernameEmail)) + require.True(t, AllowedUsername(usernameEmailAlias)) + require.False(t, AllowedUsername(usernameInvalid)) }