Commit ece6df18 authored by Sean Nichols's avatar Sean Nichols

Fix redundant returns in spec file

parent 4d2448e0
...@@ -686,7 +686,7 @@ describe Gitlab::Diff::File do ...@@ -686,7 +686,7 @@ describe Gitlab::Diff::File do
file_content: content file_content: content
).execute ).execute
return project.commit(branch_name).diffs.diff_files.first project.commit(branch_name).diffs.diff_files.first
end end
def update_file(file_name, content) def update_file(file_name, content)
...@@ -700,7 +700,7 @@ describe Gitlab::Diff::File do ...@@ -700,7 +700,7 @@ describe Gitlab::Diff::File do
file_content: content file_content: content
).execute ).execute
return project.commit(branch_name).diffs.diff_files.first project.commit(branch_name).diffs.diff_files.first
end end
def delete_file(file_name) def delete_file(file_name)
...@@ -713,7 +713,7 @@ describe Gitlab::Diff::File do ...@@ -713,7 +713,7 @@ describe Gitlab::Diff::File do
file_path: file_name file_path: file_name
).execute ).execute
return project.commit(branch_name).diffs.diff_files.first project.commit(branch_name).diffs.diff_files.first
end end
context 'when empty file is created' do context 'when empty file is created' do
......
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