From b4646bbee3bfe7ae1f8dcb1a3d4e3c965bc91f0a Mon Sep 17 00:00:00 2001 From: Patrique Legault Date: Wed, 6 Nov 2019 11:54:38 -0500 Subject: [PATCH] Reversing the order of the `fetch_token` function --- lib/travis/cli/api_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/cli/api_command.rb b/lib/travis/cli/api_command.rb index b3ad368a..d8f6be8e 100644 --- a/lib/travis/cli/api_command.rb +++ b/lib/travis/cli/api_command.rb @@ -175,7 +175,7 @@ def endpoint_option end def fetch_token - ENV['TRAVIS_TOKEN'] || endpoint_config['access_token'] + endpoint_config['access_token'] || ENV['TRAVIS_TOKEN'] end end end