Skip to content

Commit

Permalink
Remove unnecessary check.
Browse files Browse the repository at this point in the history
  • Loading branch information
cweill committed Feb 28, 2016
1 parent b28417b commit d0c92db
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/goparser/goparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ func parseReceiver(fl *ast.FieldList, ul map[string]types.Type, el map[*types.St
return r
}
st := el[s].(*ast.StructType)
if st.Fields == nil {
return r
}
r.Fields = append(r.Fields, parseFieldList(st.Fields, ul)...)
for i, f := range r.Fields {
f.Name = s.Field(i).Name()
Expand Down

0 comments on commit d0c92db

Please sign in to comment.