mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-15 19:53:40 +00:00
some linting things
This commit is contained in:
@@ -120,9 +120,10 @@ func (s *SLIP) decode(bytes []byte) {
|
||||
}
|
||||
|
||||
if escapeNext {
|
||||
if packetByte == ESC_END {
|
||||
switch packetByte {
|
||||
case ESC_END:
|
||||
s.pendingBytes = append(s.pendingBytes, END)
|
||||
} else if packetByte == ESC_ESC {
|
||||
case ESC_ESC:
|
||||
s.pendingBytes = append(s.pendingBytes, ESC)
|
||||
}
|
||||
escapeNext = false
|
||||
|
||||
Reference in New Issue
Block a user