From bcfbc370b4138c5a5b8b4260ca6e622a73517f55 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 18 Apr 2024 02:35:31 -0400 Subject: [PATCH] Remove redundant padding insert in TryAddSeedCompletion --- db/savedata.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/db/savedata.go b/db/savedata.go index 8743567..502b71e 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -1,10 +1,8 @@ package db func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) { - if len(seed) < 24 { - for range 24 - len(seed) { - seed += "0" - } + for range 24 - len(seed) { + seed += "0" } var count int