Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Mar 20, 2017
1 parent fdf8c93 commit 440ae8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function PerfCascade(waterfallDocsData: WaterfallDocs, chartOptions: Partial<Cha
function fromHar(harData: Har, options: Partial<ChartOptions & HarTransformerOptions> = {}): SVGSVGElement {
const harTransformerOptions: HarTransformerOptions = {
...defaultHarTransformerOptions,
...options as Partial<HarTransformerOptions>
...options as Partial<HarTransformerOptions>,
};
const data = HarTransformer.transformDoc(harData, harTransformerOptions);
if (typeof options.onParsed === "function") {
Expand Down
6 changes: 3 additions & 3 deletions src/ts/transformers/har.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const buildDetailTimingBlocks = (startRelative: number, harEntry: Entry): Waterf
* @param {number} startRelative - Number of milliseconds since page load started (`page.startedDateTime`)
* @returns {Object}
*/
const getTimePair =(key: string, harEntry: Entry, collect: WaterfallEntryTiming[], startRelative: number) => {
const getTimePair = (key: string, harEntry: Entry, collect: WaterfallEntryTiming[], startRelative: number) => {
let wptKey;
switch (key) {
case "wait": wptKey = "ttfb"; break;
Expand All @@ -266,7 +266,7 @@ const getTimePair =(key: string, harEntry: Entry, collect: WaterfallEntryTiming[
"end": Math.round(end),
"start": Math.round(start),
};
}
};

/**
* Helper to create a requests `WaterfallResponseDetails`
Expand All @@ -284,4 +284,4 @@ const createResponseDetails = (entry: Entry, indicators: WaterfallEntryIndicator
requestType,
statusCode: entry.response.status,
};
}
};
1 change: 0 additions & 1 deletion src/ts/waterfall/sub-components/svg-marks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export function createMarks(context: Context, marks: Mark[]) {
return marksHolder;
}


/**
* Converts a `Mark` with a duration (e.g. a UserTiming with `startTimer` and `endTimer`) into a rect.
* @param {Context} context Execution context object
Expand Down

0 comments on commit 440ae8f

Please sign in to comment.