Performance of putting code in function before event fires

This may be a dumb question, but is there any difference in performance between something like this

local function runcode()
end

RemoteEvent.OnServerEvent:Connect(
runcode()
)

compared to this

RemoteEvent.OnServerEvent:Connect(
– runs code but not in function
)

Dont think so, but at least the first one makes the code look more professional.

I don’t think it makes a difference.

PS: Rip my Unprofessional Code

There is no difference between these, it’s merely your preference.
RemoteEvent.OnServerEvent:Connect(runcode())
is the same as saying:
RemoteEvent.OnServerEvent:Connect(function() end)
Because your calling a function on a signal.

Whatever one works for you, no difference in how well written it is.

I didn’t think so, but just wanted to double check before I continued, thanks to everyone who responded