1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 20:33:21 +08:00

Specify type explicitly

This commit is contained in:
Bartłomiej Dach 2024-10-01 10:01:31 +02:00
parent 74a9899fc0
commit 8d2f2517a3
No known key found for this signature in database

View File

@ -181,7 +181,7 @@ namespace osu.Game.Overlays.Comments
private void updateState()
{
bool isOnline = apiState.Value > APIState.Offline;
var canNewCommentReason = CommentEditor.canNewCommentReason(CommentableMeta.Value);
LocalisableString? canNewCommentReason = CommentEditor.canNewCommentReason(CommentableMeta.Value);
bool commentsDisabled = canNewCommentReason != null;
bool canComment = isOnline && !commentsDisabled;