Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz committed Feb 7, 2025
1 parent 0056173 commit aed6523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NodeApi/Runtime/NodeEmbeddingRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static unsafe NodeEmbeddingRuntime FromHandle(node_embedding_runtime runt
return (NodeEmbeddingRuntime)GCHandle.FromIntPtr(userData).Target!;
}

NodeEmbeddingRuntime result = new NodeEmbeddingRuntime(runtime);
NodeEmbeddingRuntime result = new(runtime);
JSRuntime.EmbeddingRuntimeSetUserData(
runtime,
(nint)GCHandle.Alloc(result),
Expand Down
2 changes: 1 addition & 1 deletion test/NodejsEmbeddingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal static void RunInNodejsEnvironment(Action action)
public void LoadMainScriptNoThread()
{
Skip.If(NodejsPlatform == null, "Node shared library not found at " + LibnodePath);
using var runtime = NodeEmbeddingRuntime.Create(NodejsPlatform,
using NodeEmbeddingRuntime runtime = NodeEmbeddingRuntime.Create(NodejsPlatform,
new NodeEmbeddingRuntimeSettings { MainScript = MainScript });
runtime.RunEventLoop();
}
Expand Down

0 comments on commit aed6523

Please sign in to comment.