mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Minor fix
Switched from a lengthy if else to a ternary.
This commit is contained in:
parent
97edce0a67
commit
dec35f76e4
@ -115,14 +115,7 @@ public class EssentialsBridge extends FreedomService
|
|||||||
if (user != null)
|
if (user != null)
|
||||||
{
|
{
|
||||||
Long l = FUtil.getField(user, "lastActivity");
|
Long l = FUtil.getField(user, "lastActivity");
|
||||||
if (l != null)
|
return (l != null) ? l : 0L;
|
||||||
{
|
|
||||||
return l;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0L;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user