From 6e40111dfa4353b73b21c9ec1d344e44ad033b45 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 7 Jan 2020 20:43:03 -0500 Subject: [PATCH] nixpkgs-github-update: is_list --- .../lib/nixpkgs_github_update/github_latest_version.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex b/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex index bd4bb8100ba5..ad7f96d6b2a6 100644 --- a/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex +++ b/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex @@ -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