mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-17 05:03:52 -07:00
Fix failing test case
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user