From d121f9e305dab792fbba38baee5571ba9036ba26 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 2 Oct 2025 21:18:28 -0700 Subject: [PATCH] Fix build error. --- Shared/Widget/WidgetDataEncoder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Widget/WidgetDataEncoder.swift b/Shared/Widget/WidgetDataEncoder.swift index 5e0388755..00a534507 100644 --- a/Shared/Widget/WidgetDataEncoder.swift +++ b/Shared/Widget/WidgetDataEncoder.swift @@ -135,7 +135,7 @@ public final class WidgetDataEncoder { } dispatchGroup.notify(queue: .main) { - if groupError != nil { + if let groupError { Self.logger.error("WidgetDataEncoder failed to write the widget data: \(groupError.localizedDescription)") completion(nil) } else {