Skip to content

Commit

Permalink
Merge pull request #138 from alraujo/fix-indentation-unnecessary-inst…
Browse files Browse the repository at this point in the history
…ruction

Fix indentation and remove unnecessary instructions
  • Loading branch information
michaelklishin authored Dec 1, 2022
2 parents ccc85bc + 19d1276 commit bab848e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ func (ch *Channel) shutdown(e *Error) {
for _, c := range ch.closes {
c <- e
}
}

// Notify RPC if we're selecting
if e != nil {
// Notify RPC if we're selecting
ch.errors <- e
}

Expand Down
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ func (c *Connection) openTune(config Config, auth Authentication) error {
config.Properties["capabilities"] = Table{
"connection.blocked": true,
"consumer_cancel_notify": true,
"basic.nack": true,
"publisher_confirms": true,
"basic.nack": true,
"publisher_confirms": true,
}

ok := &connectionStartOk{
Expand Down
2 changes: 0 additions & 2 deletions uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ func (uri URI) String() string {
}
}

authority.Host = net.JoinHostPort(uri.Host, strconv.Itoa(uri.Port))

if defaultPort, found := schemePorts[uri.Scheme]; !found || defaultPort != uri.Port {
authority.Host = net.JoinHostPort(uri.Host, strconv.Itoa(uri.Port))
} else {
Expand Down

0 comments on commit bab848e

Please sign in to comment.