diff options
Diffstat (limited to 'lib/api/helpers/internal_helpers.rb')
-rw-r--r-- | lib/api/helpers/internal_helpers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/helpers/internal_helpers.rb b/lib/api/helpers/internal_helpers.rb index fe78049af87..1e5e22417c9 100644 --- a/lib/api/helpers/internal_helpers.rb +++ b/lib/api/helpers/internal_helpers.rb @@ -19,7 +19,7 @@ module API [ :read_project, :download_code, - :push_code + :push_code, ] end @@ -34,7 +34,7 @@ module API def log_user_activity(actor) commands = Gitlab::GitAccess::DOWNLOAD_COMMANDS - ::Users::ActivityService.new(actor, 'Git SSH').execute if commands.include?(params[:action]) + ::Users::ActivityService.new(actor, "Git SSH").execute if commands.include?(params[:action]) end def merge_request_urls @@ -44,7 +44,7 @@ module API def redis_ping result = Gitlab::Redis::SharedState.with { |redis| redis.ping } - result == 'PONG' + result == "PONG" rescue => e Rails.logger.warn("GitLab: An unexpected error occurred in pinging to Redis: #{e}") false @@ -106,7 +106,7 @@ module API { repository: repository.gitaly_repository, address: Gitlab::GitalyClient.address(project.repository_storage), - token: Gitlab::GitalyClient.token(project.repository_storage) + token: Gitlab::GitalyClient.token(project.repository_storage), } end end |