Skip to content

Commit 82433d7

Browse files
committed
Small cleanup...
1 parent 610e4f1 commit 82433d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/ngx-translate/src/lib/translate.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ export class TranslateService {
184184
*/
185185
public setDefaultLang(lang: string): Observable<InterpolatableTranslationObject>
186186
{
187-
if (this.defaultLang == null)
187+
if (!this.defaultLang)
188188
{
189189
// on init set the defaultLang immediately, but do not emit a change yet
190190
this.store.setDefaultLang(lang, false);
191191
}
192-
192+
193193
const pending = this.loadOrExtendLanguage(lang);
194194
if (isObservable(pending))
195195
{

0 commit comments

Comments
 (0)