Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Dec 10, 2023
1 parent ce58b34 commit 4ae0b41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/style/blocks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Styler.Style.Blocks do
end
end

# `Credo.Check.Refactor.CondStatements`
# Credo.Check.Refactor.CondStatements
def run({{:cond, _, [[{_, [{:->, _, [[head], a]}, {:->, _, [[{:__block__, _, [truthy]}], b]}]}]]}, _} = zipper, ctx)
when is_atom(truthy) and truthy not in [nil, false],
do: if_ast(zipper, head, a, b, ctx)
Expand All @@ -60,7 +60,6 @@ defmodule Styler.Style.Blocks do
end

# Credo.Check.Refactor.WithClauses
# Credo.Check.Refactor.RedundantWithClauseResult
def run({{:with, with_meta, children}, _} = zipper, ctx) when is_list(children) do
if Enum.any?(children, &left_arrow?/1) do
{preroll, children} =
Expand Down Expand Up @@ -157,8 +156,6 @@ defmodule Styler.Style.Blocks do
end
end

# IF / UNLESS

def run({{:unless, m, children}, _} = zipper, ctx) do
case children do
# Credo.Check.Refactor.UnlessWithElse
Expand Down

0 comments on commit 4ae0b41

Please sign in to comment.