Skip to content

Commit

Permalink
chore(lint): remove naked returns
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed May 8, 2024
1 parent 3e129db commit e3c6153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions key.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func detectOneMsg(b []byte, canHaveMoreData bool) (w int, msg Msg) {
var foundbp bool
foundbp, w, msg = detectBracketedPaste(b)
if foundbp {
return
return w, msg
}

// Detect escape sequence and control characters other than NUL,
Expand All @@ -641,7 +641,7 @@ func detectOneMsg(b []byte, canHaveMoreData bool) (w int, msg Msg) {
var foundSeq bool
foundSeq, w, msg = detectSequence(b)
if foundSeq {
return
return w, msg
}

// No non-NUL control character or escape sequence.
Expand Down

0 comments on commit e3c6153

Please sign in to comment.