Skip to content

Commit

Permalink
Remove unused local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Sep 18, 2024
1 parent c96c24c commit 76f234e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/TournamentCalender.Data/GenericRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public virtual async Task<bool> Delete<T>(T registration, CancellationToken canc
return false;

// only save date if not already approved
if (!(entity.Fields[field.Name].CurrentValue is DateTime approvedDateValue))
if (!(entity.Fields[field.Name].CurrentValue is DateTime))
{
entity.SetNewFieldValue(field.Name, date);
return da.SaveEntity(entity, true);
Expand Down

0 comments on commit 76f234e

Please sign in to comment.