Skip to content

Code quality: Loose equality (==) used instead of strict equality (===) throughout codebase #804

Description

@Eistee82

Description

The codebase uses loose equality `==` and `!=` instead of strict equality `===` and `!==` in hundreds of places across `main.js`, `lib/database.js`, `lib/vis.js`, `lib/actor_ext.js`, `lib/cronjobs.js`, and other files.

Impact: Loose equality can lead to unexpected type coercion bugs. While most current usages work correctly, this is a maintenance risk.

Note: This is a large-scale change that should be done in a separate dedicated PR with thorough testing, as each comparison needs to be verified individually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions