Skip to content

Commit

Permalink
golangci-lint: fix new linters complaints
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Feb 14, 2025
1 parent 047747a commit dd41824
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/protoc-gen-go-tetragon/eventchecker/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ func doGetFieldFrom(field *Field, g *protogen.GeneratedFile, handleList, handleO
return doTimestampFrom(), nil
} else if field.Message.GoIdent.GoImportPath == imports.DurationPath {
return doDurationFrom(), nil
} else {
return doCheckerFrom(), nil
}
return doCheckerFrom(), nil

case protoreflect.EnumKind:
return doEnumFrom(), nil
Expand Down Expand Up @@ -457,9 +456,8 @@ func checkForKind(g *protogen.GeneratedFile, field *Field, checkerVar, eventVar
return doTimestampCheck(), nil
} else if field.Message.GoIdent.GoImportPath == imports.DurationPath {
return doDurationCheck(), nil
} else {
return doCheckerCheck(), nil
}
return doCheckerCheck(), nil

case protoreflect.EnumKind:
return doEnumCheck(), nil
Expand Down

0 comments on commit dd41824

Please sign in to comment.