Fix lint error

main
Neil Alexander 2020-07-21 17:21:48 +01:00
parent b6bc132485
commit f54689f862
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 1 additions and 4 deletions

View File

@ -412,12 +412,9 @@ func (d *Database) StoreEvent(
if err == sql.ErrNoRows { if err == sql.ErrNoRows {
// We've already inserted the event so select the numeric event ID // We've already inserted the event so select the numeric event ID
eventNID, stateNID, err = d.EventsTable.SelectEvent(ctx, txn, event.EventID()) eventNID, stateNID, err = d.EventsTable.SelectEvent(ctx, txn, event.EventID())
if err != nil {
return fmt.Errorf("d.EventsTable.SelectEvent: %w", err)
}
} }
if err != nil { if err != nil {
return fmt.Errorf("d.EventsTable.InsertEvent: %w", err) return err
} }
} }