mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
linting: shadowing
This commit is contained in:
parent
677dc175d0
commit
e152586c96
|
|
@ -285,7 +285,8 @@ func (d *Database) AddState(
|
|||
) (stateNID types.StateSnapshotNID, err error) {
|
||||
err = common.WithTransaction(d.db, func(txn *sql.Tx) error {
|
||||
if len(state) > 0 {
|
||||
stateBlockNID, err := d.statements.bulkInsertStateData(ctx, txn, state)
|
||||
var stateBlockNID types.StateBlockNID
|
||||
stateBlockNID, err = d.statements.bulkInsertStateData(ctx, txn, state)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue