Skip to content

Commit

Permalink
fix: use equals to compare checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinchen committed Oct 21, 2022
1 parent e330617 commit f7b0a12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public void run() {
final BundleInfo next =
CapacitorUpdaterPlugin.this.implementation.download(url, latestVersionName);
final String checksum = (String) res.get("checksum");
if (!checksum.equals("") && next.getChecksum() != checksum) {
if (!checksum.equals("") && !next.getChecksum().equals(checksum)) {
Log.e(
CapacitorUpdater.TAG,
"Error checksum " + next.getChecksum() + " " + checksum
Expand Down

0 comments on commit f7b0a12

Please sign in to comment.