Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 492243

Summary: Useless expression in inlineSearchResultExplorer.js
Product: [ECD] Orion Reporter: Max Schaefer <max>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: Michael_Rennie
Version: unspecified   
Target Milestone: 12.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Max Schaefer CLA 2016-04-22 07:19:56 EDT
Consider line 213 of bundles/org.eclipse.orion.client.ui/web/orion/inlineSearchResultExplorer.js (https://github.com/eclipse/orion.client/blob/82ff15a54ee581c6b306bbc84ad2baa197434a54/bundles/org.eclipse.orion.client.ui/web/orion/inlineSearchResultExplorer.js#L213):

  item.parent.location ? item.parent.location : '#';

Surely the result of this expression should be assigned to some variable? Perhaps 'loc'?