From c4e376c8bb77ebbcd6b26ae63e9469f2b6914c7e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 2 Nov 2021 17:57:58 -0400 Subject: [PATCH] fix spurious error logline in schema change --- irc/database.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/database.go b/irc/database.go index bfca9d07..b066a12a 100644 --- a/irc/database.go +++ b/irc/database.go @@ -1080,6 +1080,9 @@ func schemaChangeV21To22(config *Config, tx *buntdb.Tx) error { if !strings.HasPrefix(key, settingsPrefix) { return false } + if value == "" { + return true + } account := strings.TrimPrefix(key, settingsPrefix) if _, err := tx.Get("account.verified " + account); err != nil { return true