Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit b77bd6fc authored by Michael KRISPER's avatar Michael KRISPER
Browse files

removed redundant "as" typecasts

parent 217ee654
No related branches found
No related tags found
No related merge requests found
......@@ -654,7 +654,7 @@ public class JSONFileWriter : IOutputFileWriter
foreach (var auxEntry in aux.Auxiliaries) {
var auxOut = new Dictionary<string, object>();
var engineeringAuxEntry = auxEntry as IAuxiliaryDeclarationInputData;
var engineeringAuxEntry = auxEntry;
if (!job.SavedInDeclarationMode) {
auxOut.Add("Type", auxEntry.Type.Name());
auxOut.Add("Technology", new string[] { });
......
......@@ -48,7 +48,7 @@ namespace TUGraz.VectoCore.OutputData.XML.Engineering.Writer {
public override object[] WriteXML(IAdvancedDriverAssistantSystemsEngineering inputData)
{
var adas = inputData as IAdvancedDriverAssistantSystemsEngineering;
var adas = inputData;
if (adas == null) {
return null;
}
......
......@@ -163,7 +163,7 @@ namespace TUGraz.VectoCore.Tests.Utils
{
var dao = new EngineeringDataAdapter();
var vehicleInput = JSONInputDataFactory.ReadJsonVehicle(vehicleDataFile, null);
var airdragData = vehicleInput.Components.AirdragInputData as IAirdragEngineeringInputData;
var airdragData = vehicleInput.Components.AirdragInputData;
return dao.CreateAirdragData(airdragData, vehicleInput);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment