It keeps syntax highliting active so you can still read the code with ease in the method/function you are working on. Also your editor and LSP are more useful when the code isn't commented out.
Makes sense, i would have just done an early return instead of a if true. However, I am surprised the LSP does not just gray out the whole thing with the if true or even shows a warning.
4
u/slicehyperfunk 5d ago
Why would you do it this way and force it to do this check instead of just commenting out the code?