From 978d8fb73f33417d12a9999578edf19c3ee7771b Mon Sep 17 00:00:00 2001 From: Melissa Greenbaum Date: Fri, 6 May 2022 10:02:36 -0400 Subject: [PATCH] remove empty strings --- apps/nerves_hub_api/config/release.exs | 3 +-- apps/nerves_hub_device/config/release.exs | 3 +-- apps/nerves_hub_www/config/release.exs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/nerves_hub_api/config/release.exs b/apps/nerves_hub_api/config/release.exs index fdcc9811f..3b9df6a50 100644 --- a/apps/nerves_hub_api/config/release.exs +++ b/apps/nerves_hub_api/config/release.exs @@ -8,8 +8,7 @@ sync_nodes_optional = case System.fetch_env("SYNC_NODES_OPTIONAL") do {:ok, sync_nodes_optional} -> sync_nodes_optional - |> String.trim() - |> String.split(" ") + |> String.split(" ", trim: true) |> Enum.map(&String.to_atom/1) :error -> diff --git a/apps/nerves_hub_device/config/release.exs b/apps/nerves_hub_device/config/release.exs index 279663e90..6c27430ba 100644 --- a/apps/nerves_hub_device/config/release.exs +++ b/apps/nerves_hub_device/config/release.exs @@ -8,8 +8,7 @@ sync_nodes_optional = case System.fetch_env("SYNC_NODES_OPTIONAL") do {:ok, sync_nodes_optional} -> sync_nodes_optional - |> String.trim() - |> String.split(" ") + |> String.split(" ", trim: true) |> Enum.map(&String.to_atom/1) :error -> diff --git a/apps/nerves_hub_www/config/release.exs b/apps/nerves_hub_www/config/release.exs index d618d34b3..6c5be1391 100644 --- a/apps/nerves_hub_www/config/release.exs +++ b/apps/nerves_hub_www/config/release.exs @@ -11,8 +11,7 @@ sync_nodes_optional = case System.fetch_env("SYNC_NODES_OPTIONAL") do {:ok, sync_nodes_optional} -> sync_nodes_optional - |> String.trim() - |> String.split(" ") + |> String.split(" ", trim: true) |> Enum.map(&String.to_atom/1) :error ->