Skip to content

Reduce number of clauses in with statement #20

@Hajto

Description

@Hajto

https://github.com/ijunaid8989/extractor/blob/d4318c65d2fbd734db3ad234a8c6cc7b45c49f14/lib/snapshot/snap_extractor.ex#L290-291

with was designed to enable agregation of ingredients for what it returns. It can be rewritten as simply.

with
  {:ok, data} when is_something(data) do
  whatever
end

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