Skip to content

Commit

Permalink
fix: reverse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-peruzzo committed Sep 9, 2022
1 parent 4cc76da commit 60e18f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public void run() {
return;
}

if (!res.has("url") || CapacitorUpdaterPlugin.this.isValidURL((String)res.get("url"))) {
if (!res.has("url") || !CapacitorUpdaterPlugin.this.isValidURL((String)res.get("url"))) {
Log.e(CapacitorUpdater.TAG, "Error no url or wrong format");
final JSObject retNoNeed = new JSObject();
retNoNeed.put("bundle", current.toJSON());
Expand Down

0 comments on commit 60e18f0

Please sign in to comment.