From b05879555ba8a6882e152a0642003e4ea179e548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Sun, 15 Sep 2024 13:34:19 +0200 Subject: [PATCH] Minor refactoring of build framework --- .../Builder/Publish/FrameworkDependentPublishTask.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/C64AssemblerStudioBuilder/Builder/Publish/FrameworkDependentPublishTask.cs b/src/C64AssemblerStudioBuilder/Builder/Publish/FrameworkDependentPublishTask.cs index f20f43a..4a5f1d5 100644 --- a/src/C64AssemblerStudioBuilder/Builder/Publish/FrameworkDependentPublishTask.cs +++ b/src/C64AssemblerStudioBuilder/Builder/Publish/FrameworkDependentPublishTask.cs @@ -10,8 +10,7 @@ namespace Build.Publish; public class FrameworkDependentPublishTask : FrostingTask { public override bool ShouldRun(BuildContext context) - => context.Architecture == TargetArchitecture.Dependent - && context.BuildType == BuildType.Archive; + => context is { Architecture: TargetArchitecture.Dependent, BuildType: BuildType.Archive }; public override void Run(BuildContext context) {