VB.NET Code - Do you know not to put Exit Sub before End Sub?
  v2.0 Posted at 4/05/2018 3:49 AM by Tiago Araujo

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​

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: