Skip to content

Commit 9e4b03f

Browse files
committed
Add an assert to match a comment.
1 parent ce09815 commit 9e4b03f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/sidebars.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ void _initializeContents() {
3737
final dataUsingBaseHref = body.getAttribute('data-using-base-href');
3838
if (dataUsingBaseHref == null) {
3939
// This should never happen.
40+
assert(false, '"data-using-base-href" attribute on "body" is null.');
4041
return;
4142
}
4243

0 commit comments

Comments
 (0)