Skip to content

Commit e865fbf

Browse files
remove duplicate null check (#45575)
1 parent 7162fee commit e865fbf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Components/Components/src/PersistentComponentState.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ public PersistingComponentStateSubscription RegisterOnPersisting(Func<Task> call
6868
throw new ArgumentNullException(nameof(key));
6969
}
7070

71-
if (key is null)
72-
{
73-
throw new ArgumentNullException(nameof(key));
74-
}
75-
7671
if (!PersistingState)
7772
{
7873
throw new InvalidOperationException("Persisting state is only allowed during an OnPersisting callback.");

0 commit comments

Comments
 (0)