Skip to content

Commit

Permalink
Remove unnecessary function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
knalli committed Sep 18, 2014
1 parent 9aaa9a0 commit cf86dfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,9 +1128,7 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
if (fallbackLanguageIndex < $fallbackLanguage.length) {
var langKey = $fallbackLanguage[fallbackLanguageIndex];
getFallbackTranslation(langKey, translationId, interpolateParams, Interpolator).then(
function (translation) {
deferred.resolve(translation);
},
deferred.resolve,
function () {
// Look in the next fallback language for a translation.
// It delays the resolving by passing another promise to resolve.
Expand Down

0 comments on commit cf86dfa

Please sign in to comment.