diff --git a/Sources/Brave/Frontend/Browser/PageZoom/PageZoomHandler.swift b/Sources/Brave/Frontend/Browser/PageZoom/PageZoomHandler.swift index 22aa97b1d6f..f727685131a 100644 --- a/Sources/Brave/Frontend/Browser/PageZoom/PageZoomHandler.swift +++ b/Sources/Brave/Frontend/Browser/PageZoom/PageZoomHandler.swift @@ -25,9 +25,7 @@ class PageZoomHandler: ObservableObject { @Published var currentValue: Double = 1.0 required init(tab: Tab?, isPrivateBrowsing: Bool) { - if let tab = tab { - self.webView = tab.webView - } + self.webView = tab?.webView self.isPrivateBrowsing = isPrivateBrowsing // Private Browsing on Safari iOS always defaults to 100%, and isn't persistently saved. diff --git a/Sources/Brave/Frontend/Browser/PageZoom/PageZoomView.swift b/Sources/Brave/Frontend/Browser/PageZoom/PageZoomView.swift index b6962ee43be..cac212e6e1f 100644 --- a/Sources/Brave/Frontend/Browser/PageZoom/PageZoomView.swift +++ b/Sources/Brave/Frontend/Browser/PageZoom/PageZoomView.swift @@ -142,7 +142,6 @@ struct PageZoomView: View { } } - #if DEBUG struct PageZoomView_Previews: PreviewProvider { static var previews: some View {