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

Last updated by Tiago Araújo [SSW] almost 2 years 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

We open source. Powered by GitHub