Skip to content

Commit decf7f2

Browse files
committed
Fix 2 more places
1 parent e441675 commit decf7f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/NodeApi.Generator/SymbolExtensions.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private static Type BuildSymbolicObjectType(
329329
foreach (AttributeData attribute in typeSymbol.GetAttributes())
330330
{
331331
if (attribute.AttributeClass!.ContainingNamespace.ToString()!.StartsWith(
332-
typeof(JSExportAttribute).Namespace!))
332+
typeof(JSExportAttribute).Namespace!, StringComparison.Ordinal))
333333
{
334334
Type attributeType = attribute.AttributeClass.AsType();
335335
ConstructorInfo constructor = attributeType.GetConstructor(

‎test/TestBuilder.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static void WriteCurrentFrameworkGlobalJson(string workingDirectory)
260260
{
261261
// Append the .NET preview version to the SDK version requested in global.json.
262262
sdkVersion += RuntimeInformation.FrameworkDescription.Substring(
263-
RuntimeInformation.FrameworkDescription.IndexOf("-preview."));
263+
RuntimeInformation.FrameworkDescription.IndexOf("-preview.", StringComparison.Ordinal) +);
264264
}
265265

266266
string globalJson = $$"""

0 commit comments

Comments
 (0)