Skip to content

Commit 7a92a72

Browse files
committed
C#: Change RegistryConfig to a record class
1 parent 51874b8 commit 7a92a72

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependabotProxy.cs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,9 @@ public class DependabotProxy : IDisposable
1313
/// <summary>
1414
/// Represents configurations for package registries.
1515
/// </summary>
16-
public struct RegistryConfig
17-
{
18-
/// <summary>
19-
/// The type of package registry.
20-
/// </summary>
21-
public string Type { get; set; }
22-
/// <summary>
23-
/// The URL of the package registry.
24-
/// </summary>
25-
public string URL { get; set; }
26-
}
16+
/// <param name="Type">The type of package registry.</param>
17+
/// <param name="URL">The URL of the package registry.</param>
18+
public record class RegistryConfig(string Type, string URL);
2719

2820
private readonly string host;
2921
private readonly string port;

0 commit comments

Comments
 (0)