Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lerenn committed Sep 4, 2023
1 parent 5bcf9af commit 9885b93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/broker/controllers/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c *NATS) Subscribe(ctx context.Context, channel string) (msgs chan broker.
CorrelationID: correlationID,
}
// Handle closure request from function caller
case _ = <-stop:
case <-stop:
if err := sub.Unsubscribe(); err != nil && !errors.Is(err, nats.ErrConnectionClosed) && c.logger != nil {
c.logger.Error(ctx, err.Error())
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/codegen/generators/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const (
subscriberTemplatePath = templatesDir + "/subscriber.tmpl"
controllerTemplatePath = templatesDir + "/controller.tmpl"
parameterTemplatePath = templatesDir + "/parameter.tmpl"

brokerDir = templatesDir + "/brokers"
brokerNATSTemplatePath = brokerDir + "/nats.tmpl"
)

var (
Expand Down

0 comments on commit 9885b93

Please sign in to comment.