Skip to content

Commit

Permalink
Simplify (#2967)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Jan 4, 2024
1 parent 857bb81 commit aa34b0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa34b0f

Please sign in to comment.