Skip to content

Commit

Permalink
Code optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Oct 9, 2024
1 parent cef56c9 commit 0e88d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Orc.NuGetExplorer.Xaml/Management/NuGetProjectContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public FileConflictAction ResolveFileConflict(string message)
{
if (FileConflictAction == FileConflictAction.PromptUser)
{
throw Log.ErrorAndCreateException<InvalidOperationException>("Manual resoltuion for packages conflict is not supported in Orc.NuGetExplorer");
throw Log.ErrorAndCreateException<InvalidOperationException>("Manual resolution for packages conflict is not supported in Orc.NuGetExplorer");
}

return FileConflictAction;
Expand All @@ -107,4 +107,4 @@ private static string FormatStringMessage(ILogMessage logMessage)
// For now simple write Code + Message
return $"{logMessage.Code}: {logMessage.Message}";
}
}
}
3 changes: 2 additions & 1 deletion src/Orc.NuGetExplorer/NuGet/DefaultNuGetFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private void LoadAvailableFrameworks()
}
}
#endif

foreach (var frameworkName in frameworkStringList.Distinct())
{
var targetFramework = FrameworkParser.TryParseFrameworkName(frameworkName, _frameworkNameProvider);
Expand Down Expand Up @@ -257,4 +258,4 @@ static string CheckFor45PlusVersion(int releaseKey)
return string.Empty;
}
}
}
}

0 comments on commit 0e88d11

Please sign in to comment.