Skip to content

Commit

Permalink
Update lib/scrub/cip/connection_manager.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Spofford <[email protected]>
  • Loading branch information
kalbozo and danielspofford committed Oct 7, 2020
1 parent 3b98994 commit 18c6b5e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/scrub/cip/connection_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,9 @@ defmodule Scrub.CIP.ConnectionManager do
end

def encode_request_path(request_path) when is_list(request_path) do
request_path =
Enum.reduce(request_path, <<>>, fn member, acc ->
<<acc::binary, encode_request_path(member)::binary>>
end)

<<request_path::binary>>
Enum.reduce(request_path, <<>>, fn member, acc ->
<<acc::binary, encode_request_path(member)::binary>>
end)
end

def decode(
Expand Down

0 comments on commit 18c6b5e

Please sign in to comment.