Skip to content

Code Smell: Unnecessary use of global #8

@4LT

Description

@4LT

https://github.com/JosiahJack/Keep/blob/fcdd969dd51204a8efce45a1e51bd2876fdfe04a/keepsrc/projectiles_launch.qc#L1816C8-L1816C8

This seems to be all over the place. newmis is never declared, so it must be declared as a global; however, it gets returned from the function, so there's no point in overwriting a global instead of using a local variable.

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