Skip to content

Commit

Permalink
fix(yandex): fix error with deeply nested objects
Browse files Browse the repository at this point in the history
(e.g. objects which only contain objects, and no strings)
also made linter happy ;-)
  • Loading branch information
Adam Hoyle committed Apr 6, 2017
1 parent ce1f382 commit 07bff10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/yandex.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function translateString(language, key, destObj) {

return new Promise(function (resolve, reject) {
var valuesStr = valuesArray.join(hashSimple);
if (valuesStr === ''){
if (valuesStr === '') {
// there is nothing to translate, so don't ask Yandex (Yandex will respond with an error)
resolve(destObj);
return;
Expand Down

0 comments on commit 07bff10

Please sign in to comment.