diff options
author | Sean McGivern <sean@gitlab.com> | 2017-03-01 11:00:37 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-03-01 11:00:37 +0000 |
commit | 85601264dd5b7bf5403cbaf1a9c678dda7a45335 (patch) | |
tree | 7608961ebb9c672836dd2e3f03eb56920e7b4ef3 /app/controllers | |
parent | 8dd097a91530e4b047c4b391f21047c7d29d310d (diff) | |
download | gitlab-ce-custom-empty-exception-class-cop.tar.gz |
Enabled and autocorrect the CustomErrorClass copcustom-empty-exception-class-cop
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/blob_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb index 39ba815cfca..f9a5ef46786 100644 --- a/app/controllers/projects/blob_controller.rb +++ b/app/controllers/projects/blob_controller.rb @@ -5,7 +5,7 @@ class Projects::BlobController < Projects::ApplicationController include ActionView::Helpers::SanitizeHelper # Raised when given an invalid file path - class InvalidPathError < StandardError; end + InvalidPathError = Class.new(StandardError) before_action :require_non_empty_project, except: [:new, :create] before_action :authorize_download_code! |