Skip to content

Commit 03f6b55

Browse files
Split out extraction of MIME type and rename variable
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
1 parent c70ebf6 commit 03f6b55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/briefcase/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ def validate_document_type_config(document_type_id, document_type):
150150
from briefcase.platforms.macOS.utils import mime_type_to_UTI
151151

152152
macOS = document_type.setdefault("macOS", {})
153-
if (UTI := mime_type_to_UTI(document_type.get("mime_type", None))) is not None:
154-
macOS.setdefault("LSItemContentType", UTI)
153+
mime_type = document_type.get("mime_type", None)
154+
if (uti := mime_type_to_UTI(mime_type)) is not None:
155+
macOS.setdefault("LSItemContentType", uti)
155156
macOS.setdefault("LSHandlerRank", "Alternate")
156157
else:
157158
# LSItemContentType will default to bundle.app_name.document_type_id

0 commit comments

Comments
 (0)