diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-06-29 00:13:08 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-06-29 00:13:08 +0200 |
commit | 175a90ff9d3de85eb1df4f9ab63ece0a47521932 (patch) | |
tree | dc9f77e96b0e6cc7232355e04ee3822578639aa2 /ber | |
parent | 5dac8d238b16ed14935bf8f98a8c816c96e97da5 (diff) |
drop recover
Diffstat (limited to 'ber')
-rw-r--r-- | ber/marshal.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ber/marshal.go b/ber/marshal.go index 130bef5..90ef562 100644 --- a/ber/marshal.go +++ b/ber/marshal.go @@ -24,17 +24,6 @@ func Marshal(v interface{}) ([]byte, error) { } func (e *encodeState) marshal(v interface{}) (err error) { - defer func() { - if r := recover(); r != nil { - if _, ok := r.(runtime.Error); ok { - panic(r) - } - if s, ok := r.(string); ok { - panic(s) - } - err = r.(error) - } - }() e.reflectValue(reflect.ValueOf(v)) return nil } |