Skip to content

Commit

Permalink
Remove redundant padding insert in TryAddSeedCompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Apr 18, 2024
1 parent 35641e4 commit beb829d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions db/savedata.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit beb829d

Please sign in to comment.