aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
Diffstat (limited to 'ber')
-rw-r--r--ber/dump.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ber/dump.go b/ber/dump.go
index c9c4d9c..e0edf94 100644
--- a/ber/dump.go
+++ b/ber/dump.go
@@ -34,9 +34,10 @@ func (s *state) dump(indent int) (ret string) {
ret += fmt.Sprintf("%3d: %*s%v: ", s.Len(), 2*indent, "", h)
switch h.Kind {
case kindPrimitive:
- if h.Class == classUniversal {
+ switch h.Class {
+ case classUniversal:
ret += s.universal(h)
- } else {
+ default:
ret += fmt.Sprintln(s.next())
}
case kindConstructed: