Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Aug 25, 2019
1 parent fea494f commit b7ef463
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/rabtap/broker_info_renderer_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ const (
)

func (s brokerInfoRendererText) renderQueueFlagsAsString(queue rabtap.RabbitQueue) string {
_, hasDlx := queue.EffectivePolicyDefinition["dead-letter-exchange"]
flags := []bool{queue.Durable, queue.AutoDelete, queue.Exclusive, hasDlx}
flags := []bool{queue.Durable, queue.AutoDelete, queue.Exclusive, queue.HasDlx()}
names := []string{"D", "AD", "EX", "DLX"}
return strings.Join(filterStringList(flags, names), "|")
}
Expand Down

0 comments on commit b7ef463

Please sign in to comment.