Skip to content

Commit

Permalink
chore: Address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven0351 committed Feb 8, 2024
1 parent 55dc1aa commit f99b8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/IonicPortals/PortalUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class PortalUIView: UIView {
func initView () {
if PortalsRegistrationManager.shared.isRegistered {
if let liveUpdateConfig = portal.liveUpdateConfig {
self.liveUpdatePath = try? portal.liveUpdateManager.latestAppDirectory(for: liveUpdateConfig.appId)
self.liveUpdatePath = portal.liveUpdateManager.latestAppDirectory(for: liveUpdateConfig.appId)
}

addPinnedSubview(webView)
Expand All @@ -56,7 +56,7 @@ public class PortalUIView: UIView {
/// Reloads the underlying `WKWebView`
@objc public func reload() {
if let liveUpdate = portal.liveUpdateConfig,
let latestAppPath = try? portal.liveUpdateManager.latestAppDirectory(for: liveUpdate.appId),
let latestAppPath = portal.liveUpdateManager.latestAppDirectory(for: liveUpdate.appId),
liveUpdatePath == nil || liveUpdatePath?.path != latestAppPath.path {
liveUpdatePath = latestAppPath
return webView.setServerBasePath(path: latestAppPath.path)
Expand Down

0 comments on commit f99b8b4

Please sign in to comment.