diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-06 19:04:17 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 14:24:05 +0200 |
commit | 9aefaa41ab1442f81ffc15ad9a8279bd1e92c91a (patch) | |
tree | 581326d413b1d83d237186c6a123da50787d3104 /app/controllers/projects | |
parent | ba21c00f01bf4274d0e4cc3892293fc1e581b260 (diff) | |
download | gitlab-ce-9aefaa41ab1442f81ffc15ad9a8279bd1e92c91a.tar.gz |
Fix code review issues
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/notes_controller.rb | 2 |
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 |