Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Stop using Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
vilchik-elena committed Jan 12, 2018
1 parent 9f9d4e5 commit fdabed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sonarts-core/src/runner/sonarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export function stringifyToStream(stream: NodeJS.WritableStream, data: any[]) {
stream.write("{");

let firstProp = true;
Object.entries(element).forEach(([key, value]) => {

Object.keys(element).forEach(key => {
const value = element[key];
if (value !== undefined) {
if (!firstProp) {
stream.write(",");
Expand Down

0 comments on commit fdabed2

Please sign in to comment.