mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Don't redeclare err
This commit is contained in:
parent
32ae63ee40
commit
46b3fc501c
|
|
@ -22,7 +22,7 @@ func NewSyncServerDatabase(dataSourceName string) (*SyncServerDatabase, error) {
|
|||
return nil, err
|
||||
}
|
||||
partitions := common.PartitionOffsetStatements{}
|
||||
if err := partitions.Prepare(db); err != nil {
|
||||
if err = partitions.Prepare(db); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &SyncServerDatabase{db, partitions}, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue