Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Mancioppi committed Jan 11, 2023
1 parent dabb78a commit 7c7c9c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ internal List<KeyValuePair<string, object>> ExtractMetadataV4ResourceAttributes(
clusterArn = $"{baseArn}:cluster/{clusterArn}";
}

var launchType = (string)taskResponse["LaunchType"] switch {
var launchType = (string)taskResponse["LaunchType"] switch
{
string type when "ec2".Equals(type.ToLower()) => AWSSemanticConventions.ValueEcsLaunchTypeEc2,
string type when "fargate".Equals(type.ToLower()) => AWSSemanticConventions.ValueEcsLaunchTypeFargate,
_ => null,
Expand Down

0 comments on commit 7c7c9c3

Please sign in to comment.