Skip to content
Myr

Fix failing test case

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 3f78d76 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/server.go+3 added-1 removed
78 unmodified lines
79 parts := strings.Split(addr, ":")80 if len(parts) < 2 {81 return fmt.Errorf("cannot extract port: %s", addr), port82 }83 if port, err := strconv.Atoi(parts[len(parts)-1]); err != nil {83 var err error84 port, err = strconv.Atoi(parts[len(parts)-1])85 if err != nil {86 return err, port87 }88 }89
147 unmodified lines