fix: resolve CI lint and ESLint failures

- Remove commented-out code flagged by gocritic
- Use bytes.Equal instead of string conversion comparison
- Remove unused buildRateLimitError function
- Remove unnecessary type assertions in e2eeCrypto.ts
This commit is contained in:
J3vb
2026-04-05 19:37:00 +02:00
parent 6e4a007b91
commit e2f8858019
4 changed files with 7 additions and 22 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ func TestGetUserWithRole_NotFound(t *testing.T) {
func TestGetUserWithRole_BoolConversions(t *testing.T) {
database := newTestDB(t)
uid, _ := database.CreateUser("booluser", "hash", 4) // Member: is_default=1
uid, _ := database.CreateUser("booluser", "hash", 4)
user, role, err := database.GetUserWithRole(uid)
if err != nil {