We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e155a23 commit 950c0d8Copy full SHA for 950c0d8
commons-redis/src/main/scala/com/avsystem/commons/redis/Hash.scala
@@ -46,9 +46,9 @@ object Hash {
46
)
47
48
def slot(key: ByteString): Int = {
49
- val tagStart = key.indexOf[Byte]('{')
+ val tagStart = key.indexOf('{'.toByte) // .toByte to make both Scala 2.12 and 2.13 compiler happy
50
val bytes = if (tagStart >= 0) {
51
- val tagEnd = key.indexOf[Byte]('}', tagStart + 1)
+ val tagEnd = key.indexOf('}'.toByte, tagStart + 1)
52
if (tagEnd > tagStart + 1)
53
key.iterator.slice(tagStart + 1, tagEnd)
54
else key.iterator
0 commit comments