Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yassine Ennebati <4570448+yaziine@users.noreply.github.com>
  • Loading branch information
asdine and yaziine committed Jul 30, 2020
1 parent c001a6f commit 9bccef5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions database/config.go
Expand Up @@ -154,9 +154,7 @@ type tableInfoStore struct {
}

func newTableInfoStore(tx engine.Transaction) (*tableInfoStore, error) {
ts := tableInfoStore{
tableInfos: make(map[string]TableInfo),
}
var ts tableInfoStore

err := ts.loadAllTableInfo(tx)
if err != nil {
Expand Down Expand Up @@ -245,7 +243,7 @@ func (t *tableInfoStore) Delete(tx engine.Transaction, tableName string) error {

delete(t.tableInfos, tableName)

return err
return nil
}

func (t *tableInfoStore) loadAllTableInfo(tx engine.Transaction) error {
Expand Down

0 comments on commit 9bccef5

Please sign in to comment.