From 1be50cb1727e55c027063d2cc31f05ccfaa73c5e Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 9 Nov 2017 16:14:22 +0100 Subject: [PATCH] remove braces --- VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs index ecd27ee55e..79bc8ca095 100644 --- a/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/XMLDeclarationReport.cs @@ -203,7 +203,6 @@ namespace TUGraz.VectoCore.OutputData.XML (result.EnergyConsumptionTotal / result.Distance.ConvertToKiloMeter() / result.CargoVolume / 1e6).Value() .ToMinSignificantDigits(3, 1))); } - } if (fuel.FuelDensity != null) { retVal.Add(new XElement(tns + XMLNames.Report_Results_FuelConsumption, new XAttribute(XMLNames.Report_Results_Unit_Attr, "l/100km"), @@ -219,7 +218,6 @@ namespace TUGraz.VectoCore.OutputData.XML (result.FuelConsumptionTotal.ConvertToGramm() / fuel.FuelDensity / result.Distance.ConvertToKiloMeter() / result.CargoVolume).Value().ToMinSignificantDigits(3, 1))); } - } //CO2 retVal.Add(new XElement(tns + XMLNames.Report_Results_CO2, new XAttribute(XMLNames.Report_Results_Unit_Attr, "g/km"), (result.CO2Total.ConvertToGramm() / result.Distance.ConvertToKiloMeter()).ToMinSignificantDigits(3, 1))); @@ -232,7 +230,7 @@ namespace TUGraz.VectoCore.OutputData.XML new XAttribute(XMLNames.Report_Results_Unit_Attr, "g/m³-km"), (result.CO2Total.ConvertToGramm() / result.Distance.ConvertToKiloMeter() / result.CargoVolume).Value() .ToMinSignificantDigits(3, 1))); - } + return retVal; } -- GitLab