Skip to content

Commit d9732af

Browse files
committed
Fixes
1 parent 57c4731 commit d9732af

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

DSTV.Net/Data/Contour.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ private Contour(List<DstvContourPoint> pointList, ContourType type)
3333
public static IEnumerable<Contour> CreateSeveralContours(List<DstvContourPoint> pointList, ContourType type)
3434
{
3535
#if NET
36-
ArgumentNullException.ThrowIfNull(pointList, nameof(pointList));
36+
ArgumentNullException.ThrowIfNull(pointList);
3737
#else
3838
if (pointList is null) throw new ArgumentNullException(nameof(pointList));
3939
#endif
4040

41-
List<Contour> outList = new();
41+
List<Contour> outList = [];
4242
if (type is ContourType.AK or ContourType.IK)
4343
{
4444
outList.Add(new Contour(pointList, type));
@@ -85,7 +85,7 @@ public override string ToSvg()
8585
{
8686
var sb = new StringBuilder();
8787
var sbLine = new StringBuilder();
88-
var previous = new DstvContourPoint("x", 0, 0, false, 0);
88+
var previous = new DstvContourPoint("x", 0, 0, IsNotch: false, 0);
8989
foreach (var point in _pointList)
9090
{
9191
if (_pointList.IndexOf(point) == 0)
@@ -132,7 +132,7 @@ public override string ToSvg()
132132
.Append(screwingPoint.YCoord).Append("\" x2=\"").Append(point.XCoord).Append("\" y2=\"")
133133
.Append(point.YCoord).Append("\" stroke=\"red\" stroke-width=\"4\" />");
134134
}
135-
135+
136136
previous = point;
137137
}
138138

DSTV.Net/Data/DstvElement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public record DstvElement
1010
protected static string[] GetDataVector(string dstvElementLine, ISplitter splitter)
1111
{
1212
#if NET
13-
ArgumentNullException.ThrowIfNull(splitter, nameof(splitter));
13+
ArgumentNullException.ThrowIfNull(splitter);
1414
#else
1515
if (splitter is null) throw new ArgumentNullException(nameof(splitter));
1616
#endif
@@ -29,7 +29,7 @@ protected static string[] GetDataVector(string dstvElementLine, ISplitter splitt
2929
protected static string[] CorrectSplits(string[] separated, bool skipFirst = false, bool skipLast = false)
3030
{
3131
#if NET
32-
ArgumentNullException.ThrowIfNull(separated, nameof(separated));
32+
ArgumentNullException.ThrowIfNull(separated);
3333
#else
3434
if (separated is null) throw new ArgumentNullException(nameof(separated));
3535
#endif

DSTV.Net/Implementations/DstvReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public async Task<IDstv> ParseAsync(string dstvData)
1616
public async Task<IDstv> ParseAsync(TextReader reader)
1717
{
1818
#if NET
19-
ArgumentNullException.ThrowIfNull(reader, nameof(reader));
19+
ArgumentNullException.ThrowIfNull(reader);
2020
#else
2121
if (reader == null) throw new ArgumentNullException(nameof(reader));
2222
#endif
@@ -33,7 +33,7 @@ public async Task<IDstv> ParseAsync(TextReader reader)
3333
return new DstvRecord
3434
{
3535
Header = await HeaderReader.ParseAsync(context).ConfigureAwait(false),
36-
Elements = await BodyReader.GetElementsAsync(context).ConfigureAwait(false)
36+
Elements = await BodyReader.GetElementsAsync(context).ConfigureAwait(false),
3737
};
3838
}
3939
}

0 commit comments

Comments
 (0)