Skip to content

Commit

Permalink
Don’t return nil for []Port
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Rose <[email protected]>
  • Loading branch information
guillaumerose committed Oct 3, 2019
1 parent 54f19cc commit b1ec547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pkg/vpnkit/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *Control) Unexpose(_ context.Context, port *vpnkit.Port) error {
}

func (c *Control) ListExposed(_ context.Context) ([]vpnkit.Port, error) {
var results []vpnkit.Port
results := make([]vpnkit.Port, len(c.forwards))
for _, forward := range c.forwards {
results = append(results, forward.Port())
}
Expand Down

0 comments on commit b1ec547

Please sign in to comment.