Browse Source

Handle *interface{} and remove unnecessary type conversion

bits01 8 năm trước cách đây
mục cha
commit
4339695112
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      redis/scan.go

+ 1 - 1
redis/scan.go

@@ -186,7 +186,7 @@ func convertAssign(d interface{}, s interface{}) (err error) {
 	case string:
 		switch d := d.(type) {
 		case *string:
-			*d = string(s)
+			*d = s
 		case *interface{}:
 			*d = s
 		case nil: