Skip to content

Commit

Permalink
fix: makes lint check happy
Browse files Browse the repository at this point in the history
  • Loading branch information
zl03jsj committed Sep 22, 2022
1 parent 09fe770 commit fb52724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func sqlMockExpect(m sqlmock.Sqlmock, sql string, fail bool, params ...driver.Va
}

if fail {
exe = exe.WillReturnError(errSimulated)
exe.WillReturnError(errSimulated)
m.ExpectRollback()
return
}

exe = exe.WillReturnResult(sqlmock.NewResult(1, 1))
exe.WillReturnResult(sqlmock.NewResult(1, 1))
m.ExpectCommit()
}

Expand Down

0 comments on commit fb52724

Please sign in to comment.