Skip to content

Commit

Permalink
chore: remove optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
asambstack committed Jan 31, 2023
1 parent 46f113b commit 1754609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/helpers/sync/syncSpecsLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ let showSpecsStatus = (data, statusCode) => {
// Below block is for printing build details, return if non 200 status code
if ("buildData" in specData) {
const buildDetails = specData.buildData;
const totalDuration = buildDetails.duration?.total_duration
const parallels = buildDetails.parallels
const totalDuration = (utils.isUndefined(buildDetails.duration)) ? "-" : buildDetails.duration.total_duration
const parallels = (utils.isUndefined(buildDetails.parallels)) ? "-" : buildDetails.parallels
specSummary.duration = totalDuration;
specSummary.parallels = parallels;
} else {
Expand Down

0 comments on commit 1754609

Please sign in to comment.