浏览代码

Handle *interface{} and remove unnecessary type conversion

bits01 8 年之前
父节点
当前提交
4339695112
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: