mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01:00
fix spurious error logline in schema change
This commit is contained in:
parent
85fabaad6d
commit
c4e376c8bb
@ -1080,6 +1080,9 @@ func schemaChangeV21To22(config *Config, tx *buntdb.Tx) error {
|
|||||||
if !strings.HasPrefix(key, settingsPrefix) {
|
if !strings.HasPrefix(key, settingsPrefix) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if value == "" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
account := strings.TrimPrefix(key, settingsPrefix)
|
account := strings.TrimPrefix(key, settingsPrefix)
|
||||||
if _, err := tx.Get("account.verified " + account); err != nil {
|
if _, err := tx.Get("account.verified " + account); err != nil {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user