Skip to content

Commit

Permalink
Removes Helper.tap/2 function which is now defined in Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
radiospiel committed Apr 15, 2022
1 parent 394747f commit 919c51b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/ex_minimatch/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ defmodule ExMinimatch.Helper do
if options[:log] in [:info, :debug], do: IO.inspect(obj)
end

# preserves the state
def tap(state, sideback) do
sideback.(state)

state
end

def transform(state, callback) do
callback.(state)
end
Expand Down

0 comments on commit 919c51b

Please sign in to comment.