Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-06 20:04:17 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-12 15:24:05 +0300
commit9aefaa41ab1442f81ffc15ad9a8279bd1e92c91a (patch)
tree581326d413b1d83d237186c6a123da50787d3104 /app/controllers/projects/notes_controller.rb
parentba21c00f01bf4274d0e4cc3892293fc1e581b260 (diff)
Fix code review issues
Diffstat (limited to 'app/controllers/projects/notes_controller.rb')
-rw-r--r--app/controllers/projects/notes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb
index a9a69573eed..707a0d0e5c6 100644
--- a/app/controllers/projects/notes_controller.rb
+++ b/app/controllers/projects/notes_controller.rb
@@ -72,7 +72,7 @@ class Projects::NotesController < Projects::ApplicationController
note = noteable.notes.find_by(data)
if note
- Notes::DeleteService.new(project, current_user).execute(note)
+ note.destroy
else
Notes::CreateService.new(project, current_user, note_params).execute
end