# HG changeset patch # User Lucas Thompson # Date 1495198078 -3600 # Node ID e213fdc33f46e5d0a2451c5652775be27f36bf10 # Parent 802fbba26afec91edfbea3be2bc20769f6b9aa6b Lint diff -r 802fbba26afe -r e213fdc33f46 src/app/waveform/waveform.component.ts --- a/src/app/waveform/waveform.component.ts Fri May 19 11:08:43 2017 +0100 +++ b/src/app/waveform/waveform.component.ts Fri May 19 13:47:58 2017 +0100 @@ -832,7 +832,7 @@ const startTime = collected.startTime; // !!! + make use of const stepDuration = collected.stepDuration; const matrixData = collected.data; - + if (matrixData.length === 0) { return; } @@ -1089,13 +1089,13 @@ if (isRegion) { return 'regions'; } - throw 'No shape could be deduced'; + throw new Error('No shape could be deduced'); } function getCanonicalNoteLikeUnit(unit: string): NoteLikeUnit | null { const canonicalUnits: NoteLikeUnit[] = ['midi', 'hz']; return canonicalUnits.find(canonicalUnit => { - return unit.toLowerCase().indexOf(canonicalUnit) >= 0 + return unit.toLowerCase().indexOf(canonicalUnit) >= 0; }); }