Skip to content

Commit

Permalink
chore: code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed May 26, 2023
1 parent 7b4d7eb commit f167d6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ func DeregisterDialContext(net string) {
dialsLock.Lock()
defer dialsLock.Unlock()
if dials != nil {
if _, ok := dials[net]; ok {
delete(dials, net)
}
delete(dials, net)
}
}

Expand Down

0 comments on commit f167d6c

Please sign in to comment.