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 10, 2023
1 parent f9c87a1 commit ce64ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private File unzip(final String id, final File zipFile, final String dest)
);
}

final int newPercent = (int) ((lengthRead / (float)lengthTotal) * 100);
final int newPercent = (int) ((lengthRead / (float) lengthTotal) * 100);
if (lengthTotal > 1 && newPercent != percent) {
percent = newPercent;
this.notifyDownload(id, this.calcTotalPercent(percent, 75, 90));
Expand Down Expand Up @@ -424,7 +424,7 @@ private File downloadFile(
this.notifyDownload(id, 10);
while ((length = dis.read(buffer)) > 0) {
fos.write(buffer, 0, length);
final int newPercent = (int) ((bytesRead / (float)totalLength) * 100);
final int newPercent = (int) ((bytesRead / (float) totalLength) * 100);
if (totalLength > 1 && newPercent != percent) {
percent = newPercent;
this.notifyDownload(id, this.calcTotalPercent(percent, 10, 70));
Expand Down
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
}

print("\(self.implementation.TAG) Resetting to builtin version")

// Otherwise, reset back to the built-in bundle and reload.
self.implementation.reset()
return self._reload()
Expand Down

0 comments on commit ce64ae1

Please sign in to comment.