File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/prof7bit/bitcoin/wallettool/fileformats Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -233,12 +233,11 @@ class WalletDat {
233
233
}
234
234
235
235
private def readString (ByteBuffer buf ) {
236
- return new String (buf. readSizePrefixedByteArray)
236
+ new String (buf. readSizePrefixedByteArray)
237
237
}
238
238
239
239
private def readSizePrefixedByteArray (ByteBuffer buf ){
240
- val size = buf. readCompactSize
241
- return buf. readByteArray(size)
240
+ buf. readByteArray(buf. readCompactSize)
242
241
}
243
242
244
243
private def readByteArray (ByteBuffer buf , int size ){
@@ -518,7 +517,7 @@ class WalletDatRawKeyDataList {
518
517
519
518
def findOrAddNew (byte [] pub ){
520
519
var key = getKeyData(pub)
521
- if (key == = null ){
520
+ if (key == null ){
522
521
key = new WalletDatRawKeyData
523
522
key. public_key = pub
524
523
keyData. put(ByteBuffer . wrap(pub), key)
@@ -539,7 +538,7 @@ class WalletDatRawKeyDataList {
539
538
}
540
539
541
540
def getKeyData (byte [] pub ){
542
- return keyData. get(ByteBuffer . wrap(pub))
541
+ keyData. get(ByteBuffer . wrap(pub))
543
542
}
544
543
545
544
def addEncrypted (byte [] pub , byte [] encrypted ){
You can’t perform that action at this time.
0 commit comments