Skip to content

Commit

Permalink
Merge pull request #7 from mcanam/fix/remove_words_prop
Browse files Browse the repository at this point in the history
Remove unnecessary property from syncher result object
  • Loading branch information
mcanam authored Apr 28, 2024
2 parents 55d3764 + 9cf844f commit 0b93438
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/syncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export default function syncher(data, time) {
const lines = data.lines;
line = findLine(lines, time);

if (line != null && data.enhanced) {
const words = line.words;
word = findWord(words, time);
if (line != null) {
if (data.enhanced) {
const words = line.words;
word = findWord(words, time);
}

// delete 'words' property from line
// because we don't need it anymore.
Expand Down

0 comments on commit 0b93438

Please sign in to comment.