Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Feb 4, 2023
1 parent bd3b285 commit 607b1cb
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ public void finishDownload(
checksum
);
this.saveBundleInfo(id, info);
if (checksumRes != null && !checksumRes.isEmpty() && !checksumRes.equals(checksum)) {
if (
checksumRes != null &&
!checksumRes.isEmpty() &&
!checksumRes.equals(checksum)
) {
Log.e(
CapacitorUpdater.TAG,
"Error checksum " + info.getChecksum() + " " + checksum
Expand Down Expand Up @@ -463,8 +467,13 @@ private String getChecksum(File file) throws IOException {

private void decryptFile(final File file, final String ivSessionKey)
throws IOException {
// (str != null && !str.isEmpty())
if (this.privateKey == null || this.privateKey.isEmpty() || ivSessionKey == null || ivSessionKey.isEmpty()) {
// (str != null && !str.isEmpty())
if (
this.privateKey == null ||
this.privateKey.isEmpty() ||
ivSessionKey == null ||
ivSessionKey.isEmpty()
) {
return;
}
try {
Expand Down

0 comments on commit 607b1cb

Please sign in to comment.