Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
prof7bit committed May 27, 2014
1 parent 3adeab8 commit 5c91f85
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@ class BlockchainInfoHandler extends AbstractImportExportHandler{
len = len + cipher.doFinal(buf, len)

// remove padding
val out = newByteArrayOfSize(len)
System.arraycopy(buf, 0, out, 0, len);

return new String(out, Charsets.UTF_8);
return new String(buf.take(len), Charsets.UTF_8);
}

/**
Expand Down

0 comments on commit 5c91f85

Please sign in to comment.