Skip to content

Commit

Permalink
Fix issue with empty properties
Browse files Browse the repository at this point in the history
  • Loading branch information
luketomlinson committed Jun 29, 2021
1 parent 57db9ef commit 50ea325
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/utils.ts
Expand Up @@ -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,
Expand Down

0 comments on commit 50ea325

Please sign in to comment.