Mercurial > hg > ugly-duckling
changeset 335:e213fdc33f46
Lint
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 19 May 2017 13:47:58 +0100 |
parents | 802fbba26afe |
children | 9f6131d22bec |
files | src/app/waveform/waveform.component.ts |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }); }