Skip to content

feature: Consolidate on returning true or false #161

@mrlunchbox777

Description

@mrlunchbox777

Contact Details

mrlunchbox777@gmail.com

Feature Description

Change boolean return/exit values, for full functions, from what they are to returning true or false.

Why?

Inconsistency of return values is a really bad code smell.

What should happen?

This isn't a bug because it works as is, but it is very bad practice.

For entire functions (currently full scripts, later packages), not functions inside of functions boolean return values should return true or false rather than throwing errors, exiting, returning 0or1`, or anything else.

Covers this TODO.

Steps to Test

  1. Check the return value of every function, if it is boolean it should be returning a true or false

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions