From 7fb630543bbceb1f0b9b6ea54d48ae909a032582 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Mon, 30 Dec 2024 09:49:48 +0000 Subject: [PATCH] fix nullable warning --- src/vpk/Velopack.Packaging/Abstractions/IPlatformOptions.cs | 2 +- test/Velopack.Packaging.Tests/TrustedSigningTests.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vpk/Velopack.Packaging/Abstractions/IPlatformOptions.cs b/src/vpk/Velopack.Packaging/Abstractions/IPlatformOptions.cs index a6dc421b..d7267262 100644 --- a/src/vpk/Velopack.Packaging/Abstractions/IPlatformOptions.cs +++ b/src/vpk/Velopack.Packaging/Abstractions/IPlatformOptions.cs @@ -2,5 +2,5 @@ public interface IPlatformOptions : IOutputOptions { - RID? TargetRuntime { get; set; } + RID TargetRuntime { get; set; } } diff --git a/test/Velopack.Packaging.Tests/TrustedSigningTests.cs b/test/Velopack.Packaging.Tests/TrustedSigningTests.cs index 160439bc..ee75e741 100644 --- a/test/Velopack.Packaging.Tests/TrustedSigningTests.cs +++ b/test/Velopack.Packaging.Tests/TrustedSigningTests.cs @@ -71,9 +71,7 @@ public class TrustedSigningTests .ToList(); Assert.NotEmpty(files); -#pragma warning disable CA1416 // Validate platform compatibility, this test only executes on Windows Assert.All(files, x => Assert.True(IsTrusted(x))); -#pragma warning restore CA1416 // Validate platform compatibility } private bool IsTrusted(string filePath)