Skip to content

{:ok} vs. :ok #23

Description

@gossi

There is a case where {:ok} is used, but :ok would be the more expected type of code:

[ref to come]

which would better be written as:

  with :ok <- validate_transmission(response),
       :ok <- validate_server_headers(response),

I tried, and it works.

But at the same time turns vscode into a warning minefield:

Image

If it works without turning everything orange, I'd happily go for it.

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