Skip to content

Commit 9887f54

Browse files
authored
Merge pull request #9581 from dotnet/merge/release/8.0.4xx-to-release/9.0.1xx
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx'
2 parents 1d15473 + 5ef2021 commit 9887f54

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/Microsoft.TemplateEngine.Mocks/MockInstallerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.TemplateEngine.Mocks
88
{
99
public class MockInstallerFactory : IInstallerFactory
1010
{
11-
private Guid _factoryId = new Guid("00000000-0000-0000-0000-000000000000");
11+
private readonly Guid _factoryId = new Guid("00000000-0000-0000-0000-000000000000");
1212

1313
public string Name => "MockInstallerFactory";
1414

test/Microsoft.TemplateEngine.TestHelper/XunitLoggerProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void Log<TState>(
7676

7777
var firstLinePrefix = $"| [{timestamp}] {_category} {logLevel}: ";
7878
var lines = formatter(state, exception).Split(NewLineChars, StringSplitOptions.RemoveEmptyEntries);
79-
messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
79+
messageBuilder.AppendLine(firstLinePrefix + (lines.FirstOrDefault() ?? string.Empty));
8080

8181
var additionalLinePrefix = "|" + new string(' ', firstLinePrefix.Length - 1);
8282
foreach (var line in lines.Skip(1))

tools/Microsoft.TemplateSearch.TemplateDiscovery/AdditionalData/CliHostDataProducer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public bool Equals(ITemplatePackageInfo? x, ITemplatePackageInfo? y)
7777
}
7878

7979
return x.Name.Equals(y.Name, StringComparison.OrdinalIgnoreCase)
80-
&& (x.Version?.Equals(y.Version, StringComparison.OrdinalIgnoreCase) ?? x.Version == y.Version);
80+
&& (x.Version?.Equals(y.Version, StringComparison.OrdinalIgnoreCase) ?? (x.Version == y.Version));
8181
}
8282

8383
public int GetHashCode([DisallowNull] ITemplatePackageInfo obj)

tools/Microsoft.TemplateSearch.TemplateDiscovery/AdditionalData/CliHostTemplateDataLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal CliHostTemplateData ReadHostSpecificTemplateData(ITemplateInfo template
6464
Console.Error.WriteLine(
6565
"Failed to load dotnet CLI host data for template {0} from {1}. The host data will be ignored.",
6666
templateInfo.ShortNameList?[0] ?? templateInfo.Name,
67-
file?.GetDisplayPath() ?? templateInfo.MountPointUri + templateInfo.HostConfigPlace);
67+
file?.GetDisplayPath() ?? (templateInfo.MountPointUri + templateInfo.HostConfigPlace));
6868
Console.Error.WriteLine("Details: {0}", e);
6969
}
7070
finally

0 commit comments

Comments
 (0)