Skip to content

Commit

Permalink
Silence deprecation warning in event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jalpedersen committed Jul 9, 2019
1 parent ec6b770 commit 1a9e937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Jason Barbee: https://github.com/jasonbarbee
2 changes: 1 addition & 1 deletion lib/sftpd_channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Exsftpd.SftpdChannel do
end

defp to_record(record) do
Enum.map(record, fn {_k, v} -> v end) |> Enum.into([:state]) |> List.to_tuple()
Enum.map(record, fn {_k, v} -> v end) |> List.insert_at(0, :state) |> List.to_tuple()
end

def ensure_dir(path) do
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ defmodule Exsftpd.MixProject do
[
app: :exsftpd,
description: description(),
version: "0.8.0",
elixir: "~> 1.4 or ~> 1.5 or ~> 1.6 or ~> 1.7",
version: "0.9.0-dev",
elixir: "~> 1.4 or ~> 1.5 or ~> 1.6 or ~> 1.7 or ~> 1.8 or ~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit 1a9e937

Please sign in to comment.