Skip to content

Commit

Permalink
ApplyTmTemplate -> minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ealbu committed Apr 10, 2019
1 parent f1213b9 commit 23f520b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ private void ValidateTm()
{
if (Tm.LanguageResourceBundles.Count < 2)
{
var sourceLanguage = Tm.LanguageDirection.SourceLanguage;
var targetLanguage = Tm.LanguageDirection.TargetLanguage;
var sourceLanguage = Tm?.LanguageDirection?.SourceLanguage;
var targetLanguage = Tm?.LanguageDirection?.TargetLanguage;
if (Tm.LanguageResourceBundles[sourceLanguage] == null)
{
Tm.LanguageResourceBundles.Add(new LanguageResourceBundle(sourceLanguage));
Expand Down

0 comments on commit 23f520b

Please sign in to comment.