Fixed code smells
This commit is contained in:
@@ -357,15 +357,6 @@ func (drv *companionDriver) wait(expect ...byte) ([]byte, error) {
|
||||
return wait.Wait()
|
||||
}
|
||||
|
||||
func bytesContains(b byte, slice []byte) bool {
|
||||
for _, v := range slice {
|
||||
if v == b {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (drv *companionDriver) handlePushFrame(b []byte) {
|
||||
if len(b) < 1 {
|
||||
return // illegal
|
||||
|
||||
Reference in New Issue
Block a user