diff options
Diffstat (limited to 'lib/gitlab/checks/snippet_check.rb')
-rw-r--r-- | lib/gitlab/checks/snippet_check.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gitlab/checks/snippet_check.rb b/lib/gitlab/checks/snippet_check.rb index 8bb6c576204..bcecd0fc251 100644 --- a/lib/gitlab/checks/snippet_check.rb +++ b/lib/gitlab/checks/snippet_check.rb @@ -20,14 +20,11 @@ module Gitlab @logger.append_message("Running checks for ref: #{@branch_name || @tag_name}") end - def exec + def validate! if creation? || deletion? raise GitAccess::ForbiddenError, ERROR_MESSAGES[:create_delete_branch] end - # TODO: https://gitlab.com/gitlab-org/gitlab/issues/205628 - # Check operation will not result in more than one file in the repository - true end |