taiansu / pipe_to

The enhanced elixir pipe operator which can specify the target position

Home Page:https://taiansu.github.io/pipe_to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use PipeTo.Overrid causes compile error

taiansu opened this issue · comments

Compiling 1 file (.ex)

== Compilation error on file web/controllers/admin/user_controller.ex ==
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:116: Enumerable.reduce/3
(elixir) lib/enum.ex:864: Enum.find_index/2
lib/pipe_to.ex:59: PipeTo.unpipe/2
lib/pipe_to.ex:54: PipeTo.unpipe/2
lib/pipe_to.ex:50: PipeTo.unpipe/1
expanding macro: PipeTo.~>/2

Fixed at 1ef362e.