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

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> 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: Figure: Bad example

Sub MySub
...
End sub

✅ Figure: Figure: Good example

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star