From 181731e57df9944b33d9665d066a7881c30bc44e Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 11 Oct 2018 00:24:07 +0200 Subject: Resolve improper comma operator use --- src/CoverageListing.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 { } _updateCoverageMap() { - const coverageMap = this.props.coverage.reduce((map, line) => (map[parseInt(line.$.nr)] = line.$, map), {}); + const coverageMap = this.props.coverage.reduce(function(map, line) { + map[parseInt(line.$.nr)] = line.$; + return map; + }, {}); + this.setState({ coverageMap: coverageMap }); } -- cgit v1.2.3