Remove redundant padding insert in TryAddSeedCompletion

fasthttp
maru 2024-04-18 02:36:14 -04:00
parent 35641e420b
commit beb829d20f
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 0 additions and 6 deletions

View File

@ -1,12 +1,6 @@
package db package db
func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) { func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) {
if len(seed) < 24 {
for range 24 - len(seed) {
seed += "0"
}
}
var count int var count int
err := handle.QueryRow("SELECT COUNT(*) FROM seedCompletions WHERE uuid = ? AND seed = ?", uuid, seed).Scan(&count) err := handle.QueryRow("SELECT COUNT(*) FROM seedCompletions WHERE uuid = ? AND seed = ?", uuid, seed).Scan(&count)
if err != nil { if err != nil {