Make golint happy (#165)

This commit is contained in:
Adrian Macneil 2020-10-30 19:04:02 +13:00 committed by GitHub
parent 2b3f59fbe3
commit af41fbfb4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -341,7 +341,7 @@ func TestRollback(t *testing.T) {
}
}
func testStatusUrl(t *testing.T, u *url.URL) {
func testStatusURL(t *testing.T, u *url.URL) {
db := newTestDB(t, u)
// drop, recreate, and migrate database
@ -387,6 +387,6 @@ func testStatusUrl(t *testing.T, u *url.URL) {
func TestStatus(t *testing.T) {
for _, u := range testURLs(t) {
testStatusUrl(t, u)
testStatusURL(t, u)
}
}

View file

@ -129,9 +129,9 @@ func queryColumn(db *sql.DB, query string) ([]string, error) {
}
func printVerbose(result sql.Result) {
lastInsertId, err := result.LastInsertId()
lastInsertID, err := result.LastInsertId()
if err == nil {
fmt.Printf("Last insert ID: %d\n", lastInsertId)
fmt.Printf("Last insert ID: %d\n", lastInsertID)
}
rowsAffected, err := result.RowsAffected()
if err == nil {