소스 검색

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: