Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotoNomad0 committed Oct 7, 2020
1 parent 151aa91 commit 9cd4695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/gatewayLanguageHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function getAlignedGLTextHelper(contextId, glBibles, glID = '', tsvRelati
for (let relation of tsvRelation) {
const parts = relation.split('/');

if ((parts.length === 2) && (parts[0] === glID)) {
if ((parts.length === 2) && (parts[0] === glID)) { // make sure it is for same gl and has the expected number of levels
let bibleId = parts[1];
bibleId = bibleId.split('?')[0];
const bible = glBibles[bibleId];
Expand All @@ -44,7 +44,7 @@ export function getAlignedGLTextHelper(contextId, glBibles, glID = '', tsvRelati
const alignedText = getAlignedTextFromBible(contextId, bible);

if (alignedText) {
return alignedText;
return alignedText; // we succeeded and we are done
}
}
}
Expand Down

0 comments on commit 9cd4695

Please sign in to comment.