Skip to content

Commit

Permalink
per @infogulch, error check was a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
clipperhouse committed Jul 7, 2014
1 parent 89b9dc2 commit 5df0d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typewriter/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ func getTypes(directive string, filter func(os.FileInfo) bool) ([]Type, error) {
known := err == nil

if !known {
// really shouldn't happen, since the type came from the ast in the first place
err = fmt.Errorf("failed to evaluate type %s (%s)", typ.Name, err)
continue
return typs, err
}

typ.comparable = isComparable(t)
Expand Down

0 comments on commit 5df0d69

Please sign in to comment.