Index: runtime/observatory/lib/src/elements/function_ref.dart |
diff --git a/runtime/observatory/lib/src/elements/function_ref.dart b/runtime/observatory/lib/src/elements/function_ref.dart |
index c769fde9d721aa462808e7a2922b0edf6cd41f97..e5ace692a41729483caa6b5a5534500da6a62117 100644 |
--- a/runtime/observatory/lib/src/elements/function_ref.dart |
+++ b/runtime/observatory/lib/src/elements/function_ref.dart |
@@ -36,6 +36,7 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
factory FunctionRefElement(M.IsolateRef isolate, M.FunctionRef function, |
{bool qualified: true, RenderingQueue queue}) { |
+ assert(isolate != null); |
assert(function != null); |
assert(qualified != null); |
FunctionRefElement e = document.createElement(tag.name); |
@@ -65,7 +66,7 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
void render() { |
var content = <Element>[ |
new AnchorElement( |
- href: (M.isSyntheticFunction(_function.kind) || (_isolate == null)) |
+ href: M.isSyntheticFunction(_function.kind) |
? null |
: Uris.inspect(_isolate, object: _function)) |
..text = _function.name |
@@ -77,7 +78,7 @@ class FunctionRefElement extends HtmlElement implements Renderable { |
content.addAll([ |
new SpanElement()..text = '.', |
new AnchorElement( |
- href: (M.isSyntheticFunction(function.kind) || (_isolate == null)) |
+ href: M.isSyntheticFunction(function.kind) |
? null |
: Uris.inspect(_isolate, object: function)) |
..text = function.name |