linting: shadowing

This commit is contained in:
Kegan Dougal 2020-02-18 18:06:17 +00:00
parent 677dc175d0
commit e152586c96

View file

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