Skip to content

Commit

Permalink
update setAutoUpdate method guard statement
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed Apr 11, 2021
1 parent a8de187 commit aeca1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/FocusEntity/FocusEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ open class FocusEntity: Entity, HasAnchoring, HasFocusEntity {
public private(set) var isAutoUpdating: Bool = false

public func setAutoUpdate(to autoUpdate: Bool) {
guard autoUpdate == self.isAutoUpdating,
(autoUpdate && self.arView == nil) else {
guard autoUpdate != self.isAutoUpdating,
!(autoUpdate && self.arView == nil) else {
return
}
self.updateCancellable?.cancel()
Expand Down

0 comments on commit aeca1cc

Please sign in to comment.