From ac0240a7b5c3d21129a61e640bb6d30463bbd8f7 Mon Sep 17 00:00:00 2001 From: Sheharyar Naseer Date: Mon, 28 Oct 2019 04:14:01 -0500 Subject: [PATCH] Fix compiler warnings for walk function clause Fixes compiler warnings for unused variables in the `walk` function clause --- lib/replacing_walk.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replacing_walk.ex b/lib/replacing_walk.ex index 6b04d73..2821645 100644 --- a/lib/replacing_walk.ex +++ b/lib/replacing_walk.ex @@ -67,7 +67,7 @@ defmodule ReplacingWalk do def walk(%{}, _, _), do: %{} # kv tuples (very common in config) - def walk(t = {k,v}, recognize, transform) do + def walk({_k, _v} = t, recognize, transform) do t = maybe_transform_leaf(t, recognize, transform) if is_tuple t do {k, v} = t