Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbcae66

Browse files
tamasvajkhvitved
andcommitted
Apply suggestions from code review
Co-authored-by: Tom Hvitved <[email protected]>
1 parent d140b01 commit cbcae66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csharp/extractor/Semmle.Extraction.CIL/Entities/Attribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static string GetStringValue(object? value)
6969
{
7070
if (value is System.Collections.Immutable.ImmutableArray<CustomAttributeTypedArgument<Type>> values)
7171
{
72-
return "[" + string.Join(",", values.Select(v => v.Value?.ToString() ?? "null")) + "]";
72+
return "[" + string.Join(",", values.Select(v => GetStringValue(v.Value))) + "]";
7373
}
7474

7575
return value?.ToString() ?? "null";

0 commit comments

Comments
 (0)