selectAccountDataByType function modified

This commit is contained in:
behouba 2019-09-29 09:27:10 +03:00
parent 95020c21cb
commit 7810c30058

View file

@ -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
}