Skip to content

Commit 569469f

Browse files
author
p01
committed
easier (to read) entry test for go_to_line(...)
1 parent c6de2fd commit 569469f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resource-manager/resource_detail_view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ cls.ResourceDetailView = function(id, name, container_class, html, default_handl
122122

123123
this.go_to_line = function(container, data)
124124
{
125-
if (!data || !(data.lines && data.lines.length))
125+
if (!data || !data.lines || !data.lines.length)
126126
return;
127127

128128
this._root_ele = container.getElementsByClassName(RESOURCE_DETAIL_CONTAINER_CLASSNAME)[0];

0 commit comments

Comments
 (0)