Skip to content

Commit 49c6ab1

Browse files
committed
PR2 Refactor to single line.
1 parent 6ea839b commit 49c6ab1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

hashids-scala/src/main/scala/org/hashids/Hashids.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ class Hashids(
139139
if (encode(res:_*) == hash) res else Nil
140140
}
141141

142-
def decodeHex(hash: String): String = {
143-
decode(hash).map { x =>
144-
x.toHexString.substring(1).toUpperCase
145-
}.mkString
146-
}
142+
def decodeHex(hash: String): String = decode(hash).map(_.toHexString.substring(1).toUpperCase).mkString
147143

148144
def version = "1.0.0"
149145
}

0 commit comments

Comments
 (0)