File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
csharp/extractor/Semmle.Extraction.CSharp.Standalone Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ internal partial class Runtime
22
22
23
23
public Runtime ( IDotNet dotNet ) => this . dotNet = dotNet ;
24
24
25
- internal sealed class RuntimeVersion : IComparable < RuntimeVersion >
25
+ internal record RuntimeVersion : IComparable < RuntimeVersion >
26
26
{
27
27
private readonly string dir ;
28
28
private readonly Version version ;
@@ -71,11 +71,6 @@ public int CompareTo(RuntimeVersion? other)
71
71
return c ;
72
72
}
73
73
74
- public override bool Equals ( object ? obj ) =>
75
- obj is not null && obj is RuntimeVersion other && other . FullPath == FullPath ;
76
-
77
- public override int GetHashCode ( ) => FullPath . GetHashCode ( ) ;
78
-
79
74
public override string ToString ( ) => FullPath ;
80
75
}
81
76
You can’t perform that action at this time.
0 commit comments