[#21] Apply Android Studio code inspection proposals
This commit is contained in:
parent
1c16344ccc
commit
f197268dac
|
@ -87,7 +87,7 @@ object Mnemonics {
|
|||
override fun hasNext() = cursor < chars.size - 1
|
||||
|
||||
override fun next(): String {
|
||||
var nextSpaceIndex = nextSpaceIndex()
|
||||
val nextSpaceIndex = nextSpaceIndex()
|
||||
val word = String(chars, cursor, nextSpaceIndex - cursor)
|
||||
cursor = nextSpaceIndex + 1
|
||||
return word
|
||||
|
@ -218,7 +218,7 @@ object Mnemonics {
|
|||
// initialize state
|
||||
var index = 0
|
||||
var bitsProcessed = 0
|
||||
var words = getCachedWords(languageCode)
|
||||
val words = getCachedWords(languageCode)
|
||||
|
||||
// inner function that updates the index and copies a word after every 11 bits
|
||||
// Note: the excess bits of the checksum are intentionally ignored, per BIP-39
|
||||
|
|
|
@ -62,7 +62,7 @@ object Pbkdf2Sha512 {
|
|||
bU[s.size + j] = (i shr (24 - 8 * j)).toByte()
|
||||
}
|
||||
|
||||
var uXor = mac.doFinal(bU)
|
||||
val uXor = mac.doFinal(bU)
|
||||
var uLast = uXor
|
||||
mac.reset()
|
||||
|
||||
|
|
Loading…
Reference in New Issue