mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 19:09:00 +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 {
|
if len(parts) < 2 {
|
||||||
return fmt.Errorf("cannot extract port: %s", addr), port
|
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
|
return err, port
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user