Skip to content

Commit

Permalink
add strictness to dump switch
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Sep 24, 2016
1 parent 8ef9ee8 commit d606873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ func (d *dumpState) dump(v reflect.Value, wasPtr, static bool, addr uintptr) {
}
switch kind {
case reflect.Invalid:
// Do nothing. We should never get here since invalid has already
// been handled above.
// We should never get here since invalid has already been handled above.
panic("cannot reach")

case reflect.Bool:
printBool(d.w, v.Bool())
Expand Down Expand Up @@ -414,8 +414,8 @@ func (d *dumpState) dump(v reflect.Value, wasPtr, static bool, addr uintptr) {
}

case reflect.Ptr:
// Do nothing. We should never get here since pointers have already
// been handled above.
// We should never get here since pointers have already been handled above.
panic("cannot reach")

case reflect.Map:
// nil maps should be indicated as different than empty maps
Expand Down

0 comments on commit d606873

Please sign in to comment.