Skip to content
Snippets Groups Projects
Commit 143ab94f authored by Fry, Janell's avatar Fry, Janell
Browse files

IOW-307 Codacy fixes.

parent adb3e9cb
No related branches found
No related tags found
No related merge requests found
// functions to facilitate DV legend creation for a d3 plot // functions to facilitate DV legend creation for a d3 plot
import {createStructuredSelector} from 'reselect'; import {createStructuredSelector} from 'reselect';
import {defineLineMarker} from '../../d3-rendering/markers';
import {getLayout} from './selectors/layout'; import {getLayout} from './selectors/layout';
import {getLegendMarkerRows} from './selectors/legend-data'; import {getLegendMarkerRows} from './selectors/legend-data';
......
...@@ -7,13 +7,13 @@ const tsLineMarkers = function(lineClasses) { ...@@ -7,13 +7,13 @@ const tsLineMarkers = function(lineClasses) {
let result = []; let result = [];
if (lineClasses.default) { if (lineClasses.default) {
result.push(defineLineMarker(null, `line-segment ts-dv`, 'Provisional')); result.push(defineLineMarker(null, 'line-segment ts-dv', 'Provisional'));
} }
if (lineClasses.approved) { if (lineClasses.approved) {
result.push(defineLineMarker(null, `line-segment approved ts-dv`, 'Approved')); result.push(defineLineMarker(null, 'line-segment approved ts-dv', 'Approved'));
} }
if (lineClasses.estimated) { if (lineClasses.estimated) {
result.push(defineLineMarker(null, `line-segment estimated ts-dv`, 'Estimated')); result.push(defineLineMarker(null, 'line-segment estimated ts-dv', 'Estimated'));
} }
return result; return result;
}; };
...@@ -69,6 +69,6 @@ export const getUniqueClasses = createSelector( ...@@ -69,6 +69,6 @@ export const getUniqueClasses = createSelector(
export const getLegendMarkerRows = createSelector( export const getLegendMarkerRows = createSelector(
getUniqueClasses, getUniqueClasses,
displayItems => { displayItems => {
return createLegendMarkers(displayItems) return createLegendMarkers(displayItems);
} }
); );
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment