From 3e86bde170382ae4dbf06ca451c3890d7678f7ae Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Sat, 3 Oct 2026 09:17:23 +0100 Subject: [PATCH] :art: Code tidy Tidying up two lines of code that could be confusing at first glance. --- src/rogallo/screens/main/unsupported.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rogallo/screens/main/unsupported.py b/src/rogallo/screens/main/unsupported.py index a5b28ed1..6cd4c913 100644 --- a/src/rogallo/screens/main/unsupported.py +++ b/src/rogallo/screens/main/unsupported.py @@ -50,7 +50,7 @@ async def maybe_open_unsupported_uri( return # If the scheme isn't trusted, let's see what the user wants to do about it. - if not (open_uri := scheme in (trusted_schemes := load_trusted_schemes())): + if not (open_uri := (scheme in (trusted_schemes := load_trusted_schemes()))): match await owner.app.push_screen_wait( ConfirmUnsupportedURI( message.uri, @@ -93,8 +93,9 @@ async def maybe_open_unsupported_mime_type( # If the MIME type isn't trusted, let's see what the user wants to # do about it. if not ( - open_uri := message.mime_type - in (trusted_mime_types := load_trusted_mime_types()) + open_uri := ( + message.mime_type in (trusted_mime_types := load_trusted_mime_types()) + ) ): match await owner.app.push_screen_wait( ConfirmUnsupportedURI(