Uncomment defer recover statement.

This commit is contained in:
nsf 2012-06-20 19:34:10 +06:00
parent a68e4a6f5a
commit 57c1403300
1 changed files with 7 additions and 10 deletions

View File

@ -16,17 +16,14 @@ type decoder struct {
}
func (d *decoder) decode(v interface{}) (err error) {
var _ runtime.Error
/*
defer func() {
if e := recover(); e != nil {
if _, ok := e.(runtime.Error); ok {
panic(e)
}
err = e.(error)
defer func() {
if e := recover(); e != nil {
if _, ok := e.(runtime.Error); ok {
panic(e)
}
}()
*/
err = e.(error)
}
}()
pv := reflect.ValueOf(v)
if pv.Kind() != reflect.Ptr || pv.IsNil() {