mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
style: drop redundant EOL comments flagged by ktlint in Hex.kt
New KDoc blocks on isHex/isHex64 already state the "~47ns" and
"~30% faster" perf notes, so the trailing EOL comments between the
KDoc and the function now trip ktlint's standard:no-consecutive-comments
rule ("an EOL comment may not be preceded by a KDoc"). Remove them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BawgXifvcPidMMqJ719Ka2
This commit is contained in:
@@ -60,7 +60,6 @@ object Hex {
|
||||
* emoji in `p` tags) instead of throwing. ~47ns in debug on the Emulator;
|
||||
* use [isHex64] when the length is known to be 64.
|
||||
*/
|
||||
// 47ns in debug on the Emulator
|
||||
fun isHex(hex: String?): Boolean {
|
||||
if (hex == null) return false
|
||||
if (hex.length and 1 != 0) return false
|
||||
@@ -93,7 +92,6 @@ object Hex {
|
||||
* the length is fixed and the checks are unrolled. Assumes [hex] is at least
|
||||
* 64 chars long; it does not verify the total length.
|
||||
*/
|
||||
// 30% faster than isHex
|
||||
fun isHex64(hex: String): Boolean =
|
||||
try {
|
||||
hexToByte[hex[0].code] >= 0 &&
|
||||
|
||||
Reference in New Issue
Block a user