One more time

This commit is contained in:
Neil Alexander 2022-02-22 14:55:09 +00:00
parent 29d93f3e91
commit b323318ae9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -86,7 +86,7 @@ func (m1 *DeviceMessage) DeviceKeysEqual(m2 *DeviceMessage) (bool, error) {
return false, nil // different display names
}
if len(m1.KeyJSON) == 0 || len(m2.KeyJSON) == 0 {
return false, nil // both are empty
return false, nil // either is empty
}
return bytes.Equal(m1.KeyJSON, m2.KeyJSON), nil
}