Skip to content

Commit f9908fd

Browse files
authored
No null mimetype (#248)
1 parent 5ab2568 commit f9908fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ class MakeAppImageConfig extends MakeConfig {
8585
'Icon': appName,
8686
'Type': 'Application',
8787
'StartupNotify': startupNotify ? 'true' : 'false',
88-
'MimeType': supportedMimeType != null && supportedMimeType!.isNotEmpty
89-
? '${supportedMimeType!.join(';')};'
90-
: null,
88+
if (supportedMimeType != null && supportedMimeType!.isNotEmpty)
89+
'MimeType': '${supportedMimeType!.join(';')};',
9190
if (categories.isNotEmpty) 'Categories': categories.join(';'),
9291
if (keywords.isNotEmpty) 'Keywords': keywords.join(';'),
9392
if (this.actions.isNotEmpty)

0 commit comments

Comments
 (0)