Skip to content

Commit

Permalink
Fix indent made out of space instead of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Moustachauve committed Sep 23, 2014
1 parent eee10e3 commit bcac99f
Show file tree
Hide file tree
Showing 15 changed files with 1,275 additions and 1,274 deletions.
7 changes: 4 additions & 3 deletions SEModAPI/API/Definitions/ConfigFileSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void Serialize(MyObjectBuilder_Definitions definitions)
};
var writer = XmlWriter.Create(m_configFileInfo.FullName, settings);
var serializer = (MyObjectBuilder_DefinitionsSerializer)Activator.CreateInstance(typeof(MyObjectBuilder_DefinitionsSerializer));
serializer.Serialize(writer,definitions);
serializer.Serialize(writer, definitions);
writer.Close();
}

Expand All @@ -62,7 +62,8 @@ public void Serialize(MyObjectBuilder_Definitions definitions)
/// <returns>The deserialized definition.</returns>
public MyObjectBuilder_Definitions Deserialize()
{
if (!m_configFileInfo.Exists){
if (!m_configFileInfo.Exists)
{
throw new SEConfigurationException(SEConfigurationExceptionState.InvalidFileInfo, "The file pointed by configFileInfo does not exists." + "\r\n" + "Cannot deserialize: " + m_configFileInfo.FullName);
}

Expand All @@ -73,7 +74,7 @@ public MyObjectBuilder_Definitions Deserialize()
{
throw new SEConfigurationException(SEConfigurationExceptionState.InvalidConfigurationFile, "The file pointed by configFileInfo cannot be deserialized: " + m_configFileInfo.FullName);
}
var definitions = (MyObjectBuilder_Definitions) serializer.Deserialize(reader);
var definitions = (MyObjectBuilder_Definitions)serializer.Deserialize(reader);
reader.Close();
return definitions;
}
Expand Down
Loading

0 comments on commit bcac99f

Please sign in to comment.