From 6d9d90e2cbe532336f57ee5398856b3ec66eefcb Mon Sep 17 00:00:00 2001 From: thegrb93 Date: Thu, 4 Jan 2024 16:11:34 -0500 Subject: [PATCH] Simplify --- lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua index 6a8fc55dcd..c5d74c278a 100644 --- a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua +++ b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua @@ -234,8 +234,7 @@ do local GetTable = EntMeta.GetTable function EGP:ValidEGP( Ent ) - if not IsValid( Ent ) then return false end - return GetTable( Ent ).IsEGP == true + return IsValid( Ent ) and GetTable( Ent ).IsEGP == true end end