From a6aa520b451e11512eeeef7bb5b8b54174eb59ea Mon Sep 17 00:00:00 2001 From: Dmitry Yu Okunev Date: Mon, 9 Jul 2018 17:09:33 +0300 Subject: [PATCH] Fixed "go vet" problem: unreachable code --- usb_linux.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/usb_linux.go b/usb_linux.go index c2dbd69..16576a4 100644 --- a/usb_linux.go +++ b/usb_linux.go @@ -72,8 +72,6 @@ func (hid *usbDevice) claim() error { if r, errno := hid.ioctl(USBDEVFS_CLAIM, &ifno); r == -1 { return errno - } else { - return nil } return nil }