mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
selectAccountDataByType function modified
This commit is contained in:
parent
95020c21cb
commit
7810c30058
|
|
@ -125,8 +125,7 @@ func (s *accountDataStatements) selectAccountDataByType(
|
|||
|
||||
var content []byte
|
||||
|
||||
err = stmt.QueryRowContext(ctx, localpart, roomID, dataType).Scan(&content)
|
||||
if err != nil {
|
||||
if err = stmt.QueryRowContext(ctx, localpart, roomID, dataType).Scan(&content); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue