mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user