diff --git a/lib/src/report/multi_platform.dart b/lib/src/report/multi_platform.dart index 1403b6d6d..2bb41d533 100644 --- a/lib/src/report/multi_platform.dart +++ b/lib/src/report/multi_platform.dart @@ -206,27 +206,26 @@ Future _createSwiftPackageManagerSubSection( 0, ReportStatus.passed, ); - } else { - final explanation = tr.explanations - .where((e) => e.tag == PanaTags.isSwiftPmPlugin) - .firstOrNull; - if (explanation != null) { - return Subsection( - description, - [ - explanationToIssue(explanation), - RawParagraph( - 'This package for iOS or MacOs does not support the Swift Package Manager. ' - 'It will not receive full points in a future version of the scoring model.', - ), - RawParagraph( - 'See https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors for details.'), - ], - 0, - 0, - ReportStatus.failed, - ); - } + } + final explanation = tr.explanations + .where((e) => e.tag == PanaTags.isSwiftPmPlugin) + .firstOrNull; + if (explanation != null) { + return Subsection( + description, + [ + explanationToIssue(explanation), + RawParagraph( + 'This package for iOS or MacOs does not support the Swift Package Manager. ' + 'It will not receive full points in a future version of the scoring model.', + ), + RawParagraph( + 'See https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors for details.'), + ], + 0, + 0, + ReportStatus.failed, + ); } // Don't complain if this is not an ios/macos plugin. return null;