From 128b135d5c0ac0e23bb8cde5e94693692e8a353c Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 17 Oct 2018 16:46:24 +0200 Subject: [PATCH] Make linter happy ... --- cmd/server/rpc/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/server/rpc/server.go b/cmd/server/rpc/server.go index e76bb20..97497b8 100644 --- a/cmd/server/rpc/server.go +++ b/cmd/server/rpc/server.go @@ -61,14 +61,14 @@ func (o *OrionService) OwrtListWifiInterfaces(r *http.Request, args *ListIfaceAr // CreateIfaceArgs argument structure for exported method OwrtCreateWifiInterface type CreateIfaceArgs struct { - Iface *openwrt.UCIWirelessInterface Cleanup bool + Iface *openwrt.UCIWirelessInterface } // CreateIfaceResponse argument structure for exported method OwrtCreateWifiInterface type CreateIfaceResponse struct { - Iface *openwrt.UCIWirelessInterface Errors []*openwrt.Action + Iface *openwrt.UCIWirelessInterface } // OwrtCreateWifiInterface Create a WifiInterface in openwrt @@ -303,7 +303,7 @@ func (o *OrionService) setupMasterWifi(rqContext context.Context, box *OrionBox, return nil } -// updateAndReboot connects to the box with the New adress and run basic tests on version dans updates +// updateAndReboot connects to the box with the New address and run basic tests on version dans updates func (o *OrionService) updateAndReboot(rqContext context.Context, box *OrionBox, server *OrionServer, reply *UpdateOrionBoxResponse) error { time.Sleep(3 * time.Second) boxCli, err := o.connectUpdater(rqContext, box) @@ -366,7 +366,7 @@ func (o *OrionService) UpdateOrionBox(r *http.Request, // if err := o.setupMasterWifi(r.Context(), args.Box, args.Server); err != nil { // return err // } - o.setupMasterWifi(r.Context(), args.Box, args.Server) + _ = o.setupMasterWifi(r.Context(), args.Box, args.Server) return o.updateAndReboot(r.Context(), args.Box, args.Server, reply) }