Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Oct 23, 2023
1 parent d45beca commit d26cbba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
implementation.timeout = Double(getConfig().getInt("responseTimeout", 20))
resetWhenUpdate = getConfig().getBoolean("resetWhenUpdate", true)
let periodCheckDelayValue = getConfig().getInt("periodCheckDelay", 0)
if (periodCheckDelayValue >= 0 && periodCheckDelayValue > 600) {
if periodCheckDelayValue >= 0 && periodCheckDelayValue > 600 {
periodCheckDelay = 600
}
else {
} else {
periodCheckDelay = periodCheckDelayValue
}

Expand Down Expand Up @@ -732,7 +731,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
}

@objc func checkForUpdateAfterDelay() {
if (periodCheckDelay == 0 || !self._isAutoUpdateEnabled()) {
if periodCheckDelay == 0 || !self._isAutoUpdateEnabled() {
return
}
let timer = Timer.scheduledTimer(withTimeInterval: TimeInterval(periodCheckDelay), repeats: true) { _ in
Expand Down

0 comments on commit d26cbba

Please sign in to comment.