Skip to content

Commit 3c07f4b

Browse files
committed
👕 Obery rubocop
1 parent 1ebed2b commit 3c07f4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/circleci/cli/command/base_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class BaseCommand
77
class << self
88
def setup_token
99
CircleCi.configure do |config|
10-
config.token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :')
10+
config.token = ENV.fetch('CIRCLE_CI_TOKEN', nil) || ask('Circle CI token ? :')
1111
end
1212
end
1313

lib/circleci/cli/networking/pusher_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def socket
3636
end
3737

3838
def auth(socket_id, channel)
39-
token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :')
39+
token = ENV.fetch('CIRCLE_CI_TOKEN', nil) || ask('Circle CI token ? :')
4040
res = connection.post(
4141
"/auth/pusher?circle-token=#{token}",
4242
{ socket_id: socket_id, channel_name: channel.name }

0 commit comments

Comments
 (0)