mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-01 03:51:29 +08:00
Remove redundant error check
This commit is contained in:
parent
3553891e6e
commit
808a9e6c7d
@ -18,7 +18,6 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"slices"
|
||||
|
||||
@ -247,10 +246,6 @@ func FetchUUIDFromToken(token []byte) ([]byte, error) {
|
||||
var uuid []byte
|
||||
err := handle.QueryRow("SELECT uuid FROM sessions WHERE token = ?", token).Scan(&uuid)
|
||||
if err != nil {
|
||||
if err == sql.ErrNoRows {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user