Skip to content

Commit

Permalink
Merge pull request #31 from atomist/nortissej/ts-deconstruct-object
Browse files Browse the repository at this point in the history
Use object deconstruction to copy all but one field
  • Loading branch information
cdupuis authored Aug 23, 2018
2 parents 3a30224 + a035fed commit e734225
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/internal/delivery/build/local/SpawnBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,7 @@ export class SpawnBuilder extends LocalBuilder implements LogInterpretation {
if (br.error) {
throw new Error("Build failure: " + br.error);
}
const r = {
...br,
};
delete r.childProcess;
const { childProcess, ...r } = br;
log.write("/--");
log.write(`Result: ${JSON.stringify(r, possibleAxiosObjectReplacer, 0)}`);
log.write("\\--");
Expand Down

0 comments on commit e734225

Please sign in to comment.