mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 10:58:59 +00:00
Fix failing test case
This commit is contained in:
parent
3f78d76da1
commit
c5aa8729a1
@ -80,7 +80,9 @@ func startHttpServer(address string, actionChannel chan []*action, responseChann
|
||||
if len(parts) < 2 {
|
||||
return fmt.Errorf("cannot extract port: %s", addr), port
|
||||
}
|
||||
if port, err := strconv.Atoi(parts[len(parts)-1]); err != nil {
|
||||
var err error
|
||||
port, err = strconv.Atoi(parts[len(parts)-1])
|
||||
if err != nil {
|
||||
return err, port
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user