aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-29 00:13:08 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-29 00:13:08 +0200
commit175a90ff9d3de85eb1df4f9ab63ece0a47521932 (patch)
treedc9f77e96b0e6cc7232355e04ee3822578639aa2 /ber
parent5dac8d238b16ed14935bf8f98a8c816c96e97da5 (diff)
drop recover
Diffstat (limited to 'ber')
-rw-r--r--ber/marshal.go11
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
}