Skip to content

Commit dc10f86

Browse files
BPerlakiHkelson42
authored andcommitted
Fix lint
1 parent 0d23044 commit dc10f86

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ViewModel/BrowserViewModel.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ final class BrowserViewModel: NSObject, ObservableObject,
611611
)
612612
actions.append(
613613
UIAction(title: LocalString.common_dialog_button_open_in_new_tab,
614-
image: UIImage(systemName: "doc.badge.plus")) { [weak self] _ in
615-
guard let self else { return }
614+
image: UIImage(systemName: "doc.badge.plus")) { _ in
616615
Task { @MainActor in
617616
NotificationCenter.openURL(url, inNewTab: true)
618617
}

Views/LiveActivity/ActivityService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ final class ActivityService {
112112
if #available(iOS 17.2, *) {
113113
// important to define a timestamp, this way iOS knows which updates
114114
// can be dropped, if too many of them queues up
115-
await activity.update(newContent, timestamp: .now)
115+
await activity.update(newContent, timestamp: Date.now)
116116
} else {
117117
await activity.update(newContent)
118118
}

0 commit comments

Comments
 (0)