From 81aa949105d6c19e830d3a63a827d561d3927e6a Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 27 Jan 2021 11:24:34 +0800 Subject: [PATCH] Remove the uncessary reflect.Ptr --- scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.go b/scan.go index acd637a4..0416489d 100644 --- a/scan.go +++ b/scan.go @@ -191,7 +191,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) { db.Statement.ReflectValue.Set(reflect.Append(db.Statement.ReflectValue, elem.Elem())) } } - case reflect.Struct, reflect.Ptr: + case reflect.Struct: if db.Statement.ReflectValue.Type() != Schema.ModelType { Schema, _ = schema.Parse(db.Statement.Dest, db.cacheStore, db.NamingStrategy) }