From 14f809a58d4754ef873bd19b7c0982fda47fe7a2 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 23 Apr 2024 13:25:37 -0700 Subject: [PATCH] Fix formatting --- Aware/Shared/UserDefaults+AsyncSequence.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Aware/Shared/UserDefaults+AsyncSequence.swift b/Aware/Shared/UserDefaults+AsyncSequence.swift index 4b981c3..d294ddc 100644 --- a/Aware/Shared/UserDefaults+AsyncSequence.swift +++ b/Aware/Shared/UserDefaults+AsyncSequence.swift @@ -41,9 +41,11 @@ extension UserDefaults { } } - func updates(forKeyPath keyPath: String, type _: Element.Type = Element.self, initial: Bool = false) - -> AsyncStream - { + func updates( + forKeyPath keyPath: String, + type _: Element.Type = Element.self, + initial: Bool = false + ) -> AsyncStream { .init(bufferingPolicy: .bufferingNewest(1)) { continuation in let observer = Observer(store: self, keyPath: keyPath) { value in logger.debug("Yielding UserDefaults new \"\(keyPath, privacy: .public)\" value")