Skip to content

Commit 392d43b

Browse files
committed
Drop support for Elixir versions older than 1.5
1 parent ee55720 commit 392d43b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
matrix:
3737
versions:
3838
- otp: 18.3
39-
elixir: 1.4
39+
elixir: 1.5
4040
- otp: 21.3
4141
elixir: 1.8
4242

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule Rollbax.Mixfile do
99
[
1010
app: :rollbax,
1111
version: @version,
12-
elixir: "~> 1.4",
12+
elixir: "~> 1.5",
1313
build_embedded: Mix.env() == :prod,
1414
start_permanent: Mix.env() == :prod,
1515
description: "Exception tracking and logging from Elixir to Rollbar",

pages/Using Rollbax in Plug-based applications.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ defp normalize_params(%Plug.Conn.Unfetched{aspect: :params}) do
7979
end
8080

8181
defp normalize_params(%{} = map) do
82-
Enum.into(map, %{}, fn {k, v} ->
83-
if is_binary(k) and String.contains?(k, ["password"]) do
84-
{k, "[FILTERED]"}
82+
Enum.into(map, %{}, fn {key, value} ->
83+
if is_binary(key) and String.contains?(key, ["password"]) do
84+
{key, "[FILTERED]"}
8585
else
86-
{k, normalize_params(v)}
86+
{key, normalize_params(value)}
8787
end
8888
end)
8989
end

0 commit comments

Comments
 (0)