Skip to content

Commit

Permalink
remove fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Jan 30, 2015
1 parent 847dbfd commit 4c92332
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions recordfile/recordfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ func New(st interface{}) (*RecordFile, error) {
tag := f.Tag
if tag == "index" {
switch kind {
case reflect.Struct:
fallthrough
case reflect.Array:
fallthrough
case reflect.Slice:
case reflect.Struct, reflect.Array, reflect.Slice:
return nil, fmt.Errorf("could not index %s field %v %v",
kind, i, f.Name)
}
Expand Down

0 comments on commit 4c92332

Please sign in to comment.