VB.NET Code - Do you know not to put Exit Sub before End Sub?

Last updated by Brady Stroud [SSW] about 2 months ago.See history

This is often a bad practice if you already are ending Sub you don't need another line.

Sub MySub
...
End Sub
Exit sub

Figure: Bad example

Sub MySub
...
End sub

Figure: Good example

Adam Cogan
We open source. Powered by GitHub