nixpkgs-github-update: is_list

This commit is contained in:
worldofpeace 2020-01-07 20:43:03 -05:00
parent e9d3a3c7d8
commit 6e40111dfa

View File

@ -24,7 +24,7 @@ defmodule NixpkgsGitHubUpdate.GitHubLatestVersion do
String.to_charlist("#{System.get_env("OAUTH_TOKEN")}")
end
defp put_token(headers, token) when is_binary(token) do
defp put_token(headers, token) when is_list(token) do
Map.put_new(headers, 'Authorization', 'token #{token}')
end