diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 0717fce8..07609214 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -210,7 +210,7 @@ jobs: ref: ${{ env.CHECKOUT_REF }} - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: "3.x" diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 4ee0c20d..31d9377d 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -77,7 +77,7 @@ jobs: dotnet-version: ${{ env.DOTNET_VERSION }} - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ env.PYTHON_VERSION }} diff --git a/Directory.Build.props b/Directory.Build.props index 5bf3fbf8..bb00806b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -112,7 +112,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/lib/trends_FIR/sp15/Sp15.cs b/lib/trends_FIR/sp15/Sp15.cs index b2736c2d..687d280f 100644 --- a/lib/trends_FIR/sp15/Sp15.cs +++ b/lib/trends_FIR/sp15/Sp15.cs @@ -253,13 +253,13 @@ public sealed class Sp15 : AbstractBase double[]? ringRented = Period > StackallocThreshold ? ArrayPool.Shared.Rent(Period) : null; Span ring = Period <= StackallocThreshold ? stackalloc double[Period] - : ringRented!.AsSpan(0, Period); + : ringRented.AsSpan(0, Period); // Allocate NaN-corrected values array double[]? cleanRented = len > StackallocThreshold ? ArrayPool.Shared.Rent(len) : null; Span clean = len <= StackallocThreshold ? stackalloc double[len] - : cleanRented!.AsSpan(0, len); + : cleanRented.AsSpan(0, len); try { diff --git a/quantower/IndicatorExtensions.cs b/quantower/IndicatorExtensions.cs index f4194678..cb44f749 100644 --- a/quantower/IndicatorExtensions.cs +++ b/quantower/IndicatorExtensions.cs @@ -105,7 +105,7 @@ public static class IndicatorExtensions var lastTime = data.Time(data.Count - 1); var firstTime = data.Time(0); - IChartWindowCoordinatesConverter safeConverter = converter!; + IChartWindowCoordinatesConverter safeConverter = converter; DateTime tLeft = safeConverter.GetTime(clientRect.Left); DateTime leftTime = tLeft > lastTime ? tLeft : lastTime; @@ -158,7 +158,7 @@ public static class IndicatorExtensions var lastTime = data.Time(data.Count - 1); var firstTime = data.Time(0); - IChartWindowCoordinatesConverter safeConverter = converter!; + IChartWindowCoordinatesConverter safeConverter = converter; DateTime tLeft = safeConverter.GetTime(clientRect.Left); DateTime leftTime = tLeft > lastTime ? tLeft : lastTime;