Skip to content

Commit d0c92db

Browse files
committed
Remove unnecessary check.
1 parent b28417b commit d0c92db

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/goparser/goparser.go

-3
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ func parseReceiver(fl *ast.FieldList, ul map[string]types.Type, el map[*types.St
186186
return r
187187
}
188188
st := el[s].(*ast.StructType)
189-
if st.Fields == nil {
190-
return r
191-
}
192189
r.Fields = append(r.Fields, parseFieldList(st.Fields, ul)...)
193190
for i, f := range r.Fields {
194191
f.Name = s.Field(i).Name()

0 commit comments

Comments
 (0)