Skip to content

Commit

Permalink
remove empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenbaum committed May 6, 2022
1 parent 253a873 commit 978d8fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions apps/nerves_hub_api/config/release.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
3 changes: 1 addition & 2 deletions apps/nerves_hub_device/config/release.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
3 changes: 1 addition & 2 deletions apps/nerves_hub_www/config/release.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 978d8fb

Please sign in to comment.