Skip to content

Commit

Permalink
removed null and null-forgiving operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledjon Behluli authored and Ledjon Behluli committed Aug 11, 2024
1 parent 9241612 commit 295f9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Orleans.Core.Abstractions/IDs/IdSpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ private IdSpan(SerializationInfo info, StreamingContext context)
/// A new <see cref="IdSpan"/> corresponding to the provided id.
/// </returns>
/// <exception cref="ArgumentException"/>
public static IdSpan Create(string? id)
public static IdSpan Create(string id)
{
ArgumentException.ThrowIfNullOrWhiteSpace(id, nameof(id));
return new IdSpan(Encoding.UTF8.GetBytes(id!));
return new IdSpan(Encoding.UTF8.GetBytes(id));
}

/// <summary>
Expand Down

0 comments on commit 295f9eb

Please sign in to comment.