Remove redundant error check

oauth2
maru 2024-05-05 16:08:43 -04:00
parent 3553891e6e
commit 808a9e6c7d
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 0 additions and 5 deletions

View File

@ -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
}