Skip to content

Commit

Permalink
Handled review requests
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
  • Loading branch information
m3nax committed Sep 10, 2024
1 parent 6b219d2 commit 4e99586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Dapr.Actors.Generators/ActorClientGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
/// <param name="context">Current generator syntax context passed from generator pipeline.</param>
/// <param name="cancellationToken">Cancellation token used to interrupt the generation.</param>
/// <returns>Returns the descriptor of actor client to generate.</returns>
static ActorClientDescriptor CreateActorClientDescriptor(
private static ActorClientDescriptor CreateActorClientDescriptor(
GeneratorAttributeSyntaxContext context,
CancellationToken cancellationToken)
{
Expand Down Expand Up @@ -102,7 +102,7 @@ static ActorClientDescriptor CreateActorClientDescriptor(
/// <param name="context">Context passed from the source generator when it has registered an output.</param>
/// <param name="descriptor">Descriptor of actor client to generate.</param>
/// <exception cref="InvalidOperationException">Throws when one or more required symbols assembly are missing.</exception>
static void GenerateActorClientCode(SourceProductionContext context, ActorClientDescriptor descriptor)
private static void GenerateActorClientCode(SourceProductionContext context, ActorClientDescriptor descriptor)
{
try
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dapr.Actors.Generators/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal static partial class Templates
/// <exception cref="ArgumentNullException">Throws when destinationNamespace is null.</exception>
public static SourceText ActorMethodAttributeSourceText(string destinationNamespace)
{
if (destinationNamespace == null)
if (destinationNamespace is null)
{
throw new ArgumentNullException(nameof(destinationNamespace));
}
Expand Down Expand Up @@ -54,7 +54,7 @@ internal sealed class {Constants.ActorMethodAttributeTypeName} : Attribute
/// <exception cref="ArgumentNullException">Throws when destinationNamespace is null.</exception>
public static SourceText GenerateActorClientAttributeSourceText(string destinationNamespace)
{
if (destinationNamespace == null)
if (destinationNamespace is null)
{
throw new ArgumentNullException(nameof(destinationNamespace));
}
Expand Down

0 comments on commit 4e99586

Please sign in to comment.