Minor fix

Switched from a lengthy if else to a ternary.
This commit is contained in:
Paldiu 2020-12-25 15:51:17 -05:00
parent 97edce0a67
commit dec35f76e4

View File

@ -115,14 +115,7 @@ public class EssentialsBridge extends FreedomService
if (user != null)
{
Long l = FUtil.getField(user, "lastActivity");
if (l != null)
{
return l;
}
else
{
return 0L;
}
return (l != null) ? l : 0L;
}
}
catch (Exception ex)