From 50ea32551cb58cb535f8fae29782d32d02c7a322 Mon Sep 17 00:00:00 2001 From: Luke Tomlinson Date: Tue, 29 Jun 2021 15:09:21 -0400 Subject: [PATCH] Fix issue with empty properties --- packages/core/src/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index 925d3e2d67..888b96367f 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -25,6 +25,11 @@ export function toCommandValue(input: any): string { * See: https://github.com/actions/runner/blob/ee34f4842e747b452e13235836c92b2bb1606816/src/Runner.Worker/ActionCommandManager.cs#L566 */ export function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties { + + if (Object.keys(annotationProperties).length > 0) { + return {} + } + return { title: annotationProperties.title, line: annotationProperties.startLine,