Fix linter errors
This commit is contained in:
parent
3021a6a0fd
commit
38541522e6
7 changed files with 18 additions and 14 deletions
|
|
@ -59,6 +59,7 @@ func Query(ctx context.Context, db DB, query string, args []interface{}, destPtr
|
|||
}
|
||||
}
|
||||
|
||||
// ScanOneRowToDest will scan one row into struct destination
|
||||
func ScanOneRowToDest(rows *sql.Rows, destPtr interface{}) error {
|
||||
utils.MustBeInitializedPtr(destPtr, "jet: destination is nil")
|
||||
utils.MustBe(destPtr, reflect.Ptr, "jet: destination has to be a pointer to slice or pointer to struct")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue