Skip to content

Use De Morgan to simplify code #28

Description

@pjljvandelaar

Hi Spawn developers,

Why not use De Morgan to simplify

if not (Self.Status = Not_Running
and then dwErrorCode = Windows_API.ERROR_OPERATION_ABORTED)

into

        if (Self.Status /= Not_Running)
          or else (dwErrorCode /= Windows_API.ERROR_OPERATION_ABORTED)

Problem detected and solved by Rejuvenation-Ada crate
vote for Rejuvenation-Ada as The 2022 Ada Crate Of The Year

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions