From 808a9e6c7d1785f7663896782c8849035a25104d Mon Sep 17 00:00:00 2001 From: maru Date: Sun, 5 May 2024 16:08:43 -0400 Subject: [PATCH] Remove redundant error check --- db/account.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/db/account.go b/db/account.go index e8bbf48..f18fcd2 100644 --- a/db/account.go +++ b/db/account.go @@ -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 }