Skip to content

Commit 5d8d8fe

Browse files
committed
Remove a duplicate call to future.set_result when requesting authorization on macOS.
1 parent 6758d29 commit 5d8d8fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/desktop_notifier/backends/macos.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ async def has_authorisation(self) -> bool:
175175
def handler(settings: objc_id) -> None:
176176
settings = py_from_ns(settings)
177177
future.set_result(settings)
178-
future.set_result(settings)
179178

180179
self.nc.getNotificationSettingsWithCompletionHandler(handler)
181180

0 commit comments

Comments
 (0)