Commit 94301977 authored by charlieablett's avatar charlieablett

Fix typo "available"

parent df64d5d2
...@@ -42,7 +42,7 @@ module Mutations ...@@ -42,7 +42,7 @@ module Mutations
if project_path.present? if project_path.present?
project = find_project!(project_path: project_path) project = find_project!(project_path: project_path)
elsif !can_create_personal_snippet? elsif !can_create_personal_snippet?
raise_resource_not_avaiable_error! raise_resource_not_available_error!
end end
snippet = CreateSnippetService.new(project, snippet = CreateSnippetService.new(project,
......
...@@ -24,7 +24,7 @@ describe TreeHelper do ...@@ -24,7 +24,7 @@ describe TreeHelper do
end end
end end
context 'when file lock is not avaiable' do context 'when file lock is not available' do
it 'returns the path information' do it 'returns the path information' do
stub_licensed_features(file_locks: false) stub_licensed_features(file_locks: false)
......
...@@ -40,7 +40,7 @@ module Gitlab ...@@ -40,7 +40,7 @@ module Gitlab
def authorize!(object) def authorize!(object)
unless authorized_resource?(object) unless authorized_resource?(object)
raise_resource_not_avaiable_error! raise_resource_not_available_error!
end end
end end
...@@ -63,7 +63,7 @@ module Gitlab ...@@ -63,7 +63,7 @@ module Gitlab
end end
end end
def raise_resource_not_avaiable_error! def raise_resource_not_available_error!
raise Gitlab::Graphql::Errors::ResourceNotAvailable, RESOURCE_ACCESS_ERROR raise Gitlab::Graphql::Errors::ResourceNotAvailable, RESOURCE_ACCESS_ERROR
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment