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:
@@ -184,7 +184,7 @@ public abstract class StatusDisplayItem{
|
|||||||
ScheduledStatus scheduledStatus=parentObject instanceof ScheduledStatus s ? s : null;
|
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
|
// 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");
|
throw new Exception("status " + status.url + " has null account field");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user