Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Use of Exit Sub outside of "Finally" block #13

@mattpalermo

Description

@mattpalermo

The Exit Sub statement has been used outside of the "Finally" block (In this case it is labelled "exitSub") in at least one place in the code. The Exit Sub statement should be replaced by Goto exitSub. The code should be searched through for all uses of Exit and fix this.

The problem with using Exit Sub or Exit Function instead of Goto exitSub is that if in the future someone puts more logic into the exitSub block, they will expect that this will always be called when the procedure exits normally. At the moment there is no logic, so there is currently no functional difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions