Skip to content

Commit 1754609

Browse files
committed
chore: remove optional chaining
1 parent 46f113b commit 1754609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ let showSpecsStatus = (data, statusCode) => {
196196
// Below block is for printing build details, return if non 200 status code
197197
if ("buildData" in specData) {
198198
const buildDetails = specData.buildData;
199-
const totalDuration = buildDetails.duration?.total_duration
200-
const parallels = buildDetails.parallels
199+
const totalDuration = (utils.isUndefined(buildDetails.duration)) ? "-" : buildDetails.duration.total_duration
200+
const parallels = (utils.isUndefined(buildDetails.parallels)) ? "-" : buildDetails.parallels
201201
specSummary.duration = totalDuration;
202202
specSummary.parallels = parallels;
203203
} else {

0 commit comments

Comments
 (0)