We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75370f commit a26a38eCopy full SHA for a26a38e
app/test/dartdoc/dartdoc_page_test.dart
@@ -155,10 +155,11 @@ void main() {
155
// cleanup <head> differences
156
for (final link in ['/styles.css', '/github.css', '/favicon.png']) {
157
fileXmlRoot.descendantElements
158
- .firstWhere((e) =>
+ .where((e) =>
159
e.localName == 'link' &&
160
e.getAttribute('href')!.endsWith(link))
161
- .remove();
+ .firstOrNull
162
+ ?.remove();
163
}
164
165
.firstWhereOrNull((e) => e.getAttribute('name') == 'generator')
0 commit comments