Skip to content

Commit 8b29164

Browse files
committed
Add nullability hint
1 parent c8d301f commit 8b29164

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

osu.Server.Queues.ScoreStatisticsProcessor/Commands/Maintenance/MarkNonPreservedScoresCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Diagnostics;
7+
using System.Diagnostics.CodeAnalysis;
78
using System.Linq;
89
using System.Threading;
910
using System.Threading.Tasks;
@@ -26,6 +27,7 @@ public class MarkNonPreservedScoresCommand
2627
public int RulesetId { get; set; }
2728

2829
[Option(CommandOptionType.SingleOrNoValue, Template = "--dry-run", Description = "Don't actually mark, just output.")]
30+
[MemberNotNullWhen(false, nameof(elasticQueueProcessor))]
2931
public bool DryRun { get; set; }
3032

3133
[Option(CommandOptionType.SingleOrNoValue, Template = "-v|--verbose", Description = "Output when a score is preserved too.")]
@@ -133,7 +135,7 @@ private async Task processUser(MySqlConnection db, int userId, CancellationToken
133135
scoreId = score.id
134136
});
135137

136-
elasticQueueProcessor!.PushToQueue(new ElasticQueuePusher.ElasticScoreItem
138+
elasticQueueProcessor.PushToQueue(new ElasticQueuePusher.ElasticScoreItem
137139
{
138140
ScoreId = (long?)score.id
139141
});

0 commit comments

Comments
 (0)