Skip to content

Commit

Permalink
Merge pull request #23 from ripienaar/misc_cosmetics
Browse files Browse the repository at this point in the history
fix minor ux issues
  • Loading branch information
ripienaar authored Jan 4, 2021
2 parents a43405e + cc662fb commit b1b47a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions nats/context_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func (c *ctxCommand) showIfNotEmpty(format string, val string, arg ...interface{

if !strings.Contains(format, "%") {
fmt.Print(format)
return
}

fmt.Printf(format, append([]interface{}{interface{}(val)}, arg...)...)
Expand Down
1 change: 0 additions & 1 deletion nats/pub_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func (c *pubCmd) doReq(nc *nats.Conn) error {
}

log.Printf("Received on %q rtt %v", m.Subject, time.Since(start))
log.Printf("body: %q", string(m.Data))
if len(m.Header) > 0 {
for h, vals := range m.Header {
for _, val := range vals {
Expand Down

0 comments on commit b1b47a4

Please sign in to comment.