Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
  • Loading branch information
feiskyer committed Apr 29, 2017
1 parent 7266c65 commit 4ebcf91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions go-controller/cmd/ovn-kube-util/app/nics-to-bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ func saveIPAddress(iface, bridge netlink.Link, addrs []netlink.Addr) error {
logrus.Infof("Successfully saved addr %q to bridge %q", addr.String(), bridge.Attrs().Name)
}

if err := netlink.LinkSetUp(bridge); err != nil {
return err
}

return nil
return netlink.LinkSetUp(bridge)
}

func saveRoute(iface, bridge netlink.Link, routes []netlink.Route) error {
Expand Down
1 change: 1 addition & 0 deletions go-controller/pkg/util/ovs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
ovsVsctlCommand = "ovs-vsctl"
)

// RunOVSVsctl runs a command via ovs-vsctl.
func RunOVSVsctl(args ...string) (string, string, error) {
cmdPath, err := exec.LookPath(ovsVsctlCommand)
if err != nil {
Expand Down

0 comments on commit 4ebcf91

Please sign in to comment.