From 143ab94f6fca5baada9d5fc1bcc51e7793e3524c Mon Sep 17 00:00:00 2001 From: Janell Fry <Janell_Fry@usgs.gov> Date: Wed, 11 Mar 2020 13:36:12 -0700 Subject: [PATCH] IOW-307 Codacy fixes. --- .../src/scripts/components/dailyValueHydrograph/legend.js | 1 - .../dailyValueHydrograph/selectors/legend-data.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/src/scripts/components/dailyValueHydrograph/legend.js b/assets/src/scripts/components/dailyValueHydrograph/legend.js index a094cf05b..4c31c686b 100644 --- a/assets/src/scripts/components/dailyValueHydrograph/legend.js +++ b/assets/src/scripts/components/dailyValueHydrograph/legend.js @@ -1,7 +1,6 @@ // functions to facilitate DV legend creation for a d3 plot import {createStructuredSelector} from 'reselect'; -import {defineLineMarker} from '../../d3-rendering/markers'; import {getLayout} from './selectors/layout'; import {getLegendMarkerRows} from './selectors/legend-data'; diff --git a/assets/src/scripts/components/dailyValueHydrograph/selectors/legend-data.js b/assets/src/scripts/components/dailyValueHydrograph/selectors/legend-data.js index c132a76d0..0496cae94 100644 --- a/assets/src/scripts/components/dailyValueHydrograph/selectors/legend-data.js +++ b/assets/src/scripts/components/dailyValueHydrograph/selectors/legend-data.js @@ -7,13 +7,13 @@ const tsLineMarkers = function(lineClasses) { let result = []; if (lineClasses.default) { - result.push(defineLineMarker(null, `line-segment ts-dv`, 'Provisional')); + result.push(defineLineMarker(null, 'line-segment ts-dv', 'Provisional')); } 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) { - result.push(defineLineMarker(null, `line-segment estimated ts-dv`, 'Estimated')); + result.push(defineLineMarker(null, 'line-segment estimated ts-dv', 'Estimated')); } return result; }; @@ -69,6 +69,6 @@ export const getUniqueClasses = createSelector( export const getLegendMarkerRows = createSelector( getUniqueClasses, displayItems => { - return createLegendMarkers(displayItems) + return createLegendMarkers(displayItems); } ); \ No newline at end of file -- GitLab