diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-07-21 17:21:48 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-07-21 17:21:48 +0100 |
commit | f54689f86253b8f3712ee0ae93f49d7366e7b095 (patch) | |
tree | cd0bb7fd0f8feb7171dabefa0fe016151e8c22c8 /roomserver/storage/shared | |
parent | b6bc132485ec4d6b37815929f6a4e73e5a062d3b (diff) |
Fix lint error
Diffstat (limited to 'roomserver/storage/shared')
-rw-r--r-- | roomserver/storage/shared/storage.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index e858a9b0..5494e465 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -412,12 +412,9 @@ func (d *Database) StoreEvent( if err == sql.ErrNoRows { // We've already inserted the event so select the numeric event ID eventNID, stateNID, err = d.EventsTable.SelectEvent(ctx, txn, event.EventID()) - if err != nil { - return fmt.Errorf("d.EventsTable.SelectEvent: %w", err) - } } if err != nil { - return fmt.Errorf("d.EventsTable.InsertEvent: %w", err) + return err } } |