Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem committed Feb 13, 2024
1 parent b939784 commit be8498c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func (d *Destination) Write(ctx context.Context, records []sdk.Record) (int, err
ContentType: d.config.ContentType,
Body: record.Bytes(),
}

exchange := d.config.ExchangeName
routingKey :=d.config.RoutingKey
routingKey := d.config.RoutingKey
if exchange == "" {
routingKey = d.config.QueueName
}
Expand Down
1 change: 0 additions & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func init() {
zerolog.DefaultContextLogger = &log
}


// cfgToMap converts a config struct to a map. This is useful for more type
// safety on tests.
func cfgToMap(cfg any) map[string]string {
Expand Down

0 comments on commit be8498c

Please sign in to comment.