From 6aa601866c66a62b4ab3db3fa55ab1b5e84e444d Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Wed, 22 Jun 2016 12:54:27 -0500 Subject: Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no fallback value --- lib/gitlab_access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_access.rb') diff --git a/lib/gitlab_access.rb b/lib/gitlab_access.rb index bab2c4c..04806b2 100644 --- a/lib/gitlab_access.rb +++ b/lib/gitlab_access.rb @@ -11,7 +11,7 @@ class GitlabAccess attr_reader :config, :repo_path, :repo_name, :changes, :protocol - def initialize(repo_path, actor, changes, protocol = nil) + def initialize(repo_path, actor, changes, protocol) @config = GitlabConfig.new @repo_path = repo_path.strip @actor = actor -- cgit v1.2.1