Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 committed Jul 5, 2022
1 parent a8586fc commit 4982750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/util/initContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"regexp"
"io/ioutil"
"net"
"regexp"
"strings"

"git.cs.nctu.edu.tw/calee/sctp"
Expand Down Expand Up @@ -314,7 +314,7 @@ func GetInterfaceName(IPAddress string) (interfaceName string, err error) {
}

re := regexp.MustCompile(`[a-z]`)
if (re.MatchString(IPAddress) == true) {
if re.MatchString(IPAddress) == true {
res, err := net.ResolveIPAddr("ip4", IPAddress)
if err != nil {
return "", fmt.Errorf("Error resolving address '%s': %v", IPAddress, err)
Expand Down

0 comments on commit 4982750

Please sign in to comment.