aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpacien2018-10-11 00:24:07 +0200
committerpacien2018-10-11 00:24:07 +0200
commit181731e57df9944b33d9665d066a7881c30bc44e (patch)
treec5a31d62e9e893db0158355f49982229cb0c3ee7 /src
parentb418e12b7b06ae79642ab26e021e7c9a0f17e275 (diff)
downloadjacoco-viewer-181731e57df9944b33d9665d066a7881c30bc44e.tar.gz
Resolve improper comma operator use
Diffstat (limited to 'src')
-rw-r--r--src/CoverageListing.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CoverageListing.js b/src/CoverageListing.js
index 8b7830c..5c57907 100644
--- a/src/CoverageListing.js
+++ b/src/CoverageListing.js
@@ -51,7 +51,11 @@ export class CoverageListing extends Component {
51 } 51 }
52 52
53 _updateCoverageMap() { 53 _updateCoverageMap() {
54 const coverageMap = this.props.coverage.reduce((map, line) => (map[parseInt(line.$.nr)] = line.$, map), {}); 54 const coverageMap = this.props.coverage.reduce(function(map, line) {
55 map[parseInt(line.$.nr)] = line.$;
56 return map;
57 }, {});
58
55 this.setState({ coverageMap: coverageMap }); 59 this.setState({ coverageMap: coverageMap });
56 } 60 }
57 61