summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-xorm/xorm/convert.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-01-27 09:20:59 -0600
committerLauris BH <lauris@nix.lv>2018-01-27 17:20:59 +0200
commit97fe773491ae69531141316a1178d22c8a5d1257 (patch)
tree7b000f9bfd595ef9ac063197ff8a9aa8a1fd22c7 /vendor/github.com/go-xorm/xorm/convert.go
parenta0c397df08b3e2de0e438a2404dd6f8edf866acb (diff)
downloadgitea-97fe773491ae69531141316a1178d22c8a5d1257.tar.gz
gitea-97fe773491ae69531141316a1178d22c8a5d1257.zip
fix MSSQL bug on org (#3405)
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/convert.go')
-rw-r--r--vendor/github.com/go-xorm/xorm/convert.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/go-xorm/xorm/convert.go b/vendor/github.com/go-xorm/xorm/convert.go
index 0504bef155..2316ca0b4d 100644
--- a/vendor/github.com/go-xorm/xorm/convert.go
+++ b/vendor/github.com/go-xorm/xorm/convert.go
@@ -209,10 +209,10 @@ func convertAssign(dest, src interface{}) error {
if src == nil {
dv.Set(reflect.Zero(dv.Type()))
return nil
- } else {
- dv.Set(reflect.New(dv.Type().Elem()))
- return convertAssign(dv.Interface(), src)
}
+
+ dv.Set(reflect.New(dv.Type().Elem()))
+ return convertAssign(dv.Interface(), src)
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
s := asString(src)
i64, err := strconv.ParseInt(s, 10, dv.Type().Bits())