Explorar o código

Handle *interface{} and remove unnecessary type conversion

bits01 %!s(int64=8) %!d(string=hai) anos
pai
achega
4339695112
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: