From 615ad01ed648da1cfd7ed0695899e239a1bc06d9 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 11 Nov 2023 02:38:26 +0100 Subject: [PATCH] db - fix dbsize nil err --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index 7db6abc..8de203a 100644 --- a/db/db.go +++ b/db/db.go @@ -161,7 +161,7 @@ func (db *Db) SizeDb(dbname string) float32 { if !done { if err == sql.ErrNoRows { fmt.Printf(" cannot find db %s or db is empty\n", dbname) - } else { + } else if err != nil { fmt.Printf(" what the fuck error : %+v\n", err) } }