diff options
author | Sean Nichols <git@seanich.com> | 2018-12-13 10:24:31 +0300 |
---|---|---|
committer | Sean Nichols <git@seanich.com> | 2018-12-13 10:24:31 +0300 |
commit | ece6df18f88fd51015bb8adac1da68f944eafdfe (patch) | |
tree | 9b23d3d9854470d0e961fac74736eee06275d9b0 /spec/lib/gitlab/diff | |
parent | 4d2448e03a4f73edc785bd89620fa8c5efdf3def (diff) |
Fix redundant returns in spec file
Diffstat (limited to 'spec/lib/gitlab/diff')
-rw-r--r-- | spec/lib/gitlab/diff/file_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/diff/file_spec.rb b/spec/lib/gitlab/diff/file_spec.rb index f0ca47d8d41..b15d22c634a 100644 --- a/spec/lib/gitlab/diff/file_spec.rb +++ b/spec/lib/gitlab/diff/file_spec.rb @@ -686,7 +686,7 @@ describe Gitlab::Diff::File do file_content: content ).execute - return project.commit(branch_name).diffs.diff_files.first + project.commit(branch_name).diffs.diff_files.first end def update_file(file_name, content) @@ -700,7 +700,7 @@ describe Gitlab::Diff::File do file_content: content ).execute - return project.commit(branch_name).diffs.diff_files.first + project.commit(branch_name).diffs.diff_files.first end def delete_file(file_name) @@ -713,7 +713,7 @@ describe Gitlab::Diff::File do file_path: file_name ).execute - return project.commit(branch_name).diffs.diff_files.first + project.commit(branch_name).diffs.diff_files.first end context 'when empty file is created' do |