1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 23:36:10 +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() private void updateState()
{ {
bool isOnline = apiState.Value > APIState.Offline; bool isOnline = apiState.Value > APIState.Offline;
var canNewCommentReason = CommentEditor.canNewCommentReason(CommentableMeta.Value); LocalisableString? canNewCommentReason = CommentEditor.canNewCommentReason(CommentableMeta.Value);
bool commentsDisabled = canNewCommentReason != null; bool commentsDisabled = canNewCommentReason != null;
bool canComment = isOnline && !commentsDisabled; bool canComment = isOnline && !commentsDisabled;