Skip to content

Commit

Permalink
= -> undefined
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Hulce <patrick.hulce@gmail.com>
  • Loading branch information
adamraine and patrickhulce committed Nov 25, 2020
1 parent 241cb3d commit 63a25b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/lib/tracehouse/trace-processor.js
Expand Up @@ -571,7 +571,7 @@ class TraceProcessor {
// Ensure our traceEnd reflects all page activity.
const traceEnd = this.computeTraceEnd(trace.traceEvents, timeOriginEvt);

/** @param {number=} ts */
/** @param {number|undefined} ts */
const maybeGetTiming = (ts) => ts === undefined ? undefined : (ts - timeOriginEvt.ts) / 1000;
// This could be much more concise with object spread, but the consensus is that explicitness is
// preferred over brevity here.
Expand Down

0 comments on commit 63a25b9

Please sign in to comment.