From d3c588e4abf42988a6106aa674bdd848dc02cad0 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:56:55 -0300 Subject: [PATCH] refactor: avoids unnecessary ignored arg --- lib/mix/tasks/blend/get.ex | 3 ++- lib/mix/tasks/blend/update.ex | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/blend/get.ex b/lib/mix/tasks/blend/get.ex index 558965e..73ea6f0 100644 --- a/lib/mix/tasks/blend/get.ex +++ b/lib/mix/tasks/blend/get.ex @@ -7,7 +7,8 @@ defmodule Mix.Tasks.Blend.Get do @impl true def run(args) do Blend.blends() - |> Enum.map(fn {blend_id, _deps} -> + |> Map.keys() + |> Enum.map(fn blend_id -> IO.puts("Resolving blend #{blend_id}") Blend.within( diff --git a/lib/mix/tasks/blend/update.ex b/lib/mix/tasks/blend/update.ex index 03389ce..586237a 100644 --- a/lib/mix/tasks/blend/update.ex +++ b/lib/mix/tasks/blend/update.ex @@ -7,7 +7,8 @@ defmodule Mix.Tasks.Blend.Update do @impl true def run(args) do Blend.blends() - |> Enum.map(fn {blend_id, _deps} -> + |> Map.keys() + |> Enum.map(fn blend_id -> IO.puts("Updating blend #{blend_id}") Blend.within(