aws-samples / aws-sdk-js-notes-app

A simple note taking application using modular AWS SDK for JavaScript (v3)
Other
81 stars 30 forks source link

chore: clean up eslint warnings in RecordAudioButton #15

Closed trivikr closed 3 years ago

trivikr commented 3 years ago

Issue

Follow-up to https://github.com/aws-samples/aws-sdk-js-notes-app/pull/14

Description

Clean up the following eslint warnings in RecordAudioButton:

Compiled with warnings.

src/content/RecordAudioButton.tsx
  Line 17:40:  'noteContent' is assigned a value but never used                                       @typescript-eslint/no-unused-vars
  Line 88:17:  Function declared in a loop contains unsafe references to variable(s) 'transcription'  no-loop-func

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Testing

Verified that real-time audio transcription works, and no warnings are shown in console.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.