Skip to content

Commit 1c55146

Browse files
feedback
1 parent 913eaa1 commit 1c55146

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

github/gen-iterators.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ func (t *templateData) processMethods(f *ast.File) error {
316316
}
317317

318318
methodKey := strings.TrimPrefix(typeToString(fd.Recv.List[0].Type), "*") + "." + fd.Name.Name
319-
320319
if !fd.Name.IsExported() || (!strings.HasPrefix(fd.Name.Name, "List") && customNames[methodKey] == "") {
321320
continue
322321
}
@@ -520,7 +519,6 @@ func (t *templateData) processReturnStarExpr(fd *ast.FuncDecl, starRet *ast.Star
520519
}
521520

522521
var itemsField, itemsType string
523-
524522
if field, ok := sliceToBeUsedForIteration[methodInfo.RecvType+"."+fd.Name.Name]; ok {
525523
itemsField = field
526524
if itemsType, ok = wrapperDef.Fields[itemsField]; !ok || !strings.HasPrefix(itemsType, "[]*") {

0 commit comments

Comments
 (0)