Skip to content

Commit

Permalink
client: drop unnecessary nil check in Client.Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Feb 21, 2024
1 parent e48e8d1 commit b7c02ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,6 @@ func (c *Client) Extension(ext string) (bool, string) {
if err := c.hello(); err != nil {
return false, ""
}
if c.ext == nil {
return false, ""
}
ext = strings.ToUpper(ext)
param, ok := c.ext[ext]
return ok, param
Expand Down

0 comments on commit b7c02ea

Please sign in to comment.