From beb829d20fb7c0c099b40a7436cc165e6fbe3c92 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 18 Apr 2024 02:36:14 -0400 Subject: [PATCH] Remove redundant padding insert in TryAddSeedCompletion --- db/savedata.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/db/savedata.go b/db/savedata.go index 8743567..30c1357 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -1,12 +1,6 @@ package db func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) { - if len(seed) < 24 { - for range 24 - len(seed) { - seed += "0" - } - } - var count int err := handle.QueryRow("SELECT COUNT(*) FROM seedCompletions WHERE uuid = ? AND seed = ?", uuid, seed).Scan(&count) if err != nil {