Skip to content

Commit

Permalink
fixed else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Culbreth committed Apr 11, 2014
1 parent 4fc09f6 commit 1e2e414
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gorp.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,7 @@ func (m *DbMap) createTables(ifNotExists bool) error {
// use the transaction if it's there. otherwise, use the db connection.
if m.Tx != nil {
_, err = m.Tx.Exec(s.String())
}
else {
} else {
_, err = m.Exec(s.String())
}

Expand Down

0 comments on commit 1e2e414

Please sign in to comment.