Is that code part of a custom node?
If so, is the reason you are doing these checks, to avoid linking up variable nodes in the graph to avoid redundancy?
In either case, I can see that .isConnected can be useful in certain cases 🙂 As such I will fix this so that it work in runtime for the next version, but until that next version, you can indeed remove the #if UNITY_EDITOR define from “ValidateConnections” and as such have it work as it was working before.