Skip to content

Commit f20812d

Browse files
committed
Code quality improvement
1 parent 05f3c64 commit f20812d

File tree

1 file changed

+3
-3
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ private static HashSet<DotNetVersion> ParseSdks(IList<string> listed)
5555

5656
private string? GetCscPath()
5757
{
58-
var newestSdkVersion = GetNewestSdkVersion();
59-
if (newestSdkVersion is null)
58+
var version = Version;
59+
if (version is null)
6060
{
6161
logger.LogWarning("No dotnet SDK found.");
6262
return null;
6363
}
6464

65-
var path = Path.Combine(newestSdkVersion.FullPath, "Roslyn", "bincore", "csc.dll");
65+
var path = Path.Combine(version.FullPath, "Roslyn", "bincore", "csc.dll");
6666
logger.LogDebug($"Source generator CSC: '{path}'");
6767
if (!File.Exists(path))
6868
{

0 commit comments

Comments
 (0)