Skip to content

Commit 3a2fe32

Browse files
Update lib/main.dart
Co-authored-by: Ratakondala Arun <[email protected]>
1 parent 2713188 commit 3a2fe32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Map<String, dynamic>? loadConfigFileFromArgResults(ArgResults argResults, {bool
200200
Map<String, dynamic> loadConfigFile(String path, String? fileOptionResult) {
201201
final yamlMap = PubspecParser.toMap(path);
202202

203-
if (!(yamlMap['flutter_icons'] is Map)) {
203+
if (yamlMap['flutter_icons'] is! Map) {
204204
stderr.writeln(NoConfigFoundException('Check that your config file '
205205
'`${fileOptionResult ?? defaultConfigFile}`'
206206
' has a `flutter_icons` section'));

0 commit comments

Comments
 (0)