Skip to content

Commit

Permalink
Update Sources/Defaults/Observation.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
leoMehlig and sindresorhus authored Sep 3, 2023
1 parent 8b256c1 commit 704167f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Defaults/Observation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ extension Defaults {

func start(options: ObservationOptions) {
object?.addObserver(self, forKeyPath: key, options: options.toNSKeyValueObservingOptions, context: nil)
self.isObserving = true
isObserving = true
}

func invalidate() {
Expand Down

0 comments on commit 704167f

Please sign in to comment.