Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Jan 7, 2025
1 parent ae8ea2c commit 7c8f646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/factsengine/plugininterface/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type GatheringArgs struct {
RequestID string
}

func (s *GathererRPCServer) ServeGathering(args GatheringArgs, resp *[]entities.Fact) (err error) {
func (s *GathererRPCServer) ServeGathering(args GatheringArgs, resp *[]entities.Fact) error {

ctx, cancel := context.WithCancel(context.Background())
if s.cancelMap == nil {
Expand All @@ -59,6 +59,7 @@ func (s *GathererRPCServer) ServeGathering(args GatheringArgs, resp *[]entities.
s.cancelMap[args.RequestID] = cancel
defer delete(s.cancelMap, args.RequestID)

var err error
*resp, err = s.Impl.Gather(ctx, args.Facts)
return err
}
Expand Down

0 comments on commit 7c8f646

Please sign in to comment.