Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit ae0791c

Browse files
author
Alex Rønne Petersen
committed
List.first() -> Enum.fetch!().
1 parent d9b28bf commit ae0791c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lib/host.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule ExMake.Lib.Host do
4242
sys_arch = :erlang.system_info(:system_architecture) |>
4343
String.from_char_list!() |>
4444
String.split("-") |>
45-
Enum.first()
45+
Enum.fetch!(0)
4646

4747
re = fn(re) -> Regex.match?(re, sys_arch) end
4848

0 commit comments

Comments
 (0)