Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein committed Aug 18, 2024
1 parent 4d23679 commit f5d0288
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static Tuple<decimal, Mengeneinheit> GetConsumption(this BO.Energiemenge

ISet<Mengeneinheit> einheiten = new HashSet<Mengeneinheit>(em.Energieverbrauch.Select(x => x.Einheit));
if (einheiten.Count > 1)
// z.B. kWh und Wh oder Monat und Jahr... Die liefern IsPure==true.
// z.B. kWh und Wh oder Monat und Jahr... Die liefern IsPure==true.
{
throw new NotImplementedException("Converting different units of same type is not supported yet.");
}
Expand Down Expand Up @@ -439,7 +439,7 @@ public static bool IsEvenlySpaced(this BO.Energiemenge em, ITimeRange reference,
var minDiff = startEndDatumPeriods.Min().TotalSeconds;
foreach (var ts in startEndDatumPeriods)
if (Math.Abs(ts.TotalSeconds % minDiff) != 0)
// use profiler as logger:
// use profiler as logger:

{
return false;
Expand Down
2 changes: 1 addition & 1 deletion BO4E/BO/Rechnung.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public Rechnung(JObject sapPrintDocument) : this()
if ((jrp["nettobtr"] ?? jrp["NETTOBTR"]).Value<decimal>() <= 0)
{
Vorausgezahlt = new Betrag
{ Waehrung = waehrungscode, Wert = (jrp["nettobtr"] ?? jrp["NETTOBTR"]).Value<decimal>() };
{ Waehrung = waehrungscode, Wert = (jrp["nettobtr"] ?? jrp["NETTOBTR"]).Value<decimal>() };
}
}

Expand Down
2 changes: 1 addition & 1 deletion BO4E/meta/CentralEuropeStandardTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static CentralEuropeStandardTime()
const string resourceFileName = "BO4E.meta.CentralEuropeStandardTime.json";
using var stream = assembly.GetManifestResourceStream(resourceFileName);
if (stream == null)
// this should never ever happen
// this should never ever happen
{
throw new FileNotFoundException($"The file resource {resourceFileName} was not found.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static JsonSerializerOptions GetJsonSerializerOptions(this LenientParsing

foreach (LenientParsing lp in Enum.GetValues(typeof(LenientParsing)))
if (lenient.HasFlag(lp))
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
{
switch (lp)
{
Expand Down Expand Up @@ -80,11 +80,11 @@ public static JsonSerializerOptions GetJsonSerializerOptions(this LenientParsing
case LenientParsing.STRING_TO_INT:
settings.Converters.Add(new LenientSystemTextJsonStringToIntConverter());
break;
// case LenientParsing.EmptyLists:
// converters.Add(new LenientRequiredListConverter());
// break;
// case LenientParsing.EmptyLists:
// converters.Add(new LenientRequiredListConverter());
// break;

// no default case because NONE and MOST_LENIENT do not come up with more converters
// no default case because NONE and MOST_LENIENT do not come up with more converters
}
}
//IContractResolver contractResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static JsonSerializerSettings GetJsonSerializerSettings(this LenientParsi
var converters = new List<JsonConverter>();
foreach (LenientParsing lp in Enum.GetValues(typeof(LenientParsing)))
if (lenient.HasFlag(lp))
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
{
switch (lp)
{
Expand All @@ -55,11 +55,11 @@ public static JsonSerializerSettings GetJsonSerializerSettings(this LenientParsi
case LenientParsing.STRING_TO_INT:
converters.Add(new LenientStringToIntConverter());
break;
// case LenientParsing.EmptyLists:
// converters.Add(new LenientRequiredListConverter());
// break;
// case LenientParsing.EmptyLists:
// converters.Add(new LenientRequiredListConverter());
// break;

// no default case because NONE and MOST_LENIENT do not come up with more converters
// no default case because NONE and MOST_LENIENT do not come up with more converters
}
}

Expand Down

0 comments on commit f5d0288

Please sign in to comment.