style(status-display-item): move bracket around to make it more neat

It's in the check for the account parameter existing
This commit is contained in:
LucasGGamerM
2025-05-15 08:34:40 -03:00
parent 2f16e06750
commit bdec03514a

View File

@@ -184,7 +184,7 @@ public abstract class StatusDisplayItem{
ScheduledStatus scheduledStatus=parentObject instanceof ScheduledStatus s ? s : null;
// Check if account is null. This should never happen, but it seems to do in latest versions of glitch-soc
if (scheduledStatus == null && status.account == null || (status.reblog != null && status.reblog.account == null) || (status.quote != null) && status.quote.account == null) {
if (scheduledStatus == null && status.account == null || (status.reblog != null && status.reblog.account == null) || (status.quote != null && status.quote.account == null)) {
throw new Exception("status " + status.url + " has null account field");
}