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)
|
||||
{
|
||||
Long l = FUtil.getField(user, "lastActivity");
|
||||
if (l != null)
|
||||
{
|
||||
return l;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
return (l != null) ? l : 0L;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
Reference in New Issue
Block a user