Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcnaught committed Apr 9, 2019
1 parent 9aed8e9 commit 22ac054
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions GAVPI/GAVPI/Core/Engine/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ public void load_settings()
string xml_pushtotalk_key = element.Attributes.GetNamedItem("pushtotalk_key").Value;
string xml_recognizer_info = element.Attributes.GetNamedItem("recognizer_info").Value;

if (String.IsNullOrEmpty(xml_voice_info) &&
String.IsNullOrEmpty(xml_pushtotalk_mode) &&
String.IsNullOrEmpty(xml_pushtotalk_key) &&
String.IsNullOrEmpty(xml_recognizer_info))

if (String.IsNullOrEmpty(xml_voice_info) &&
String.IsNullOrEmpty(xml_pushtotalk_mode) &&
String.IsNullOrEmpty(xml_pushtotalk_key) &&
String.IsNullOrEmpty(xml_recognizer_info))
{
throw new Exception("Malformed settings file, some values are null.");
}
Expand Down

0 comments on commit 22ac054

Please sign in to comment.