Skip to content

Commit 2ccab07

Browse files
committed
in: Reduce uncovered code count
1 parent 56cb7d3 commit 2ccab07

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

in.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func in[byteseq ~string | ~[]byte](needle string, haystack byteseq) bool {
3030
return strings.Contains(rv.String(), needle)
3131
case reflect.Slice:
3232
return bytes.Contains(rv.Bytes(), []byte(needle))
33-
default:
34-
panic("unreachable")
3533
}
34+
panic("unreachable")
3635
}

0 commit comments

Comments
 (0)