summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-06 19:04:17 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-12 14:24:05 +0200
commit9aefaa41ab1442f81ffc15ad9a8279bd1e92c91a (patch)
tree581326d413b1d83d237186c6a123da50787d3104 /app/controllers/projects
parentba21c00f01bf4274d0e4cc3892293fc1e581b260 (diff)
downloadgitlab-ce-9aefaa41ab1442f81ffc15ad9a8279bd1e92c91a.tar.gz
Fix code review issues
Diffstat (limited to 'app/controllers/projects')
-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