Skip to content

Commit 83b38ee

Browse files
committed
Merge pull request #11 from jkonecki/Fix_for_warning_CS0472
Fix for warning CS0472: The result of the expression is always 'false' -- Guid is a struct, so can never be null.
2 parents 96474e4 + 845c663 commit 83b38ee

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/Orleans/Streams/SimpleMessageStream/SimpleMessageStreamProvider.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ public Task Start()
6363

6464
public IAsyncStream<T> GetStream<T>(Guid id, string streamNamespace)
6565
{
66-
if (id == null)
67-
throw new ArgumentNullException("id");
68-
6966
var streamId = StreamId.GetStreamId(id, Name, streamNamespace);
7067
return providerRuntime.GetStreamDirectory().GetOrAddStream<T>(
7168
streamId,

src/OrleansRuntime/Streams/PersistentStream/PersistentStreamProvider.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ public async Task Start()
119119

120120
public IAsyncStream<T> GetStream<T>(Guid id, string streamNamespace)
121121
{
122-
if (id == null) throw new ArgumentNullException("id");
123-
124122
var streamId = StreamId.GetStreamId(id, Name, streamNamespace);
125123
return providerRuntime.GetStreamDirectory().GetOrAddStream<T>(
126124
streamId, () => new StreamImpl<T>(streamId, this, IsRewindable));

0 commit comments

Comments
 (0)