aboutsummaryrefslogtreecommitdiff
path: root/ber/marshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/marshal.go')
-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
}