Skip to content

Commit

Permalink
plugins: fix wrong type cast (#264)
Browse files Browse the repository at this point in the history
This change fixes a wrong type cast (#263).

Signed-off-by: Hidenori Matsubayashi <[email protected]>
  • Loading branch information
HidenoriMatsubayashi authored Jul 19, 2024
1 parent 2bae617 commit 6b5e315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elinux_plugins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ELinuxPlugin extends PluginPlatform implements NativeOrDartPlugin {
List<String> dependencies) {
assert(validate(yaml));
// Treat 'none' as not present. See https://github.com/flutter/flutter/issues/57497.
String? pluginClass = yaml[kPluginClass] as String;
String? pluginClass = yaml[kPluginClass] as String?;
if (pluginClass == 'none') {
pluginClass = null;
}
Expand Down

0 comments on commit 6b5e315

Please sign in to comment.