summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-12-28 12:40:39 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2016-12-28 12:40:39 +0100
commit2ac92662ea1577f4a71751ded4dafbd90d74bd2b (patch)
tree25f0d1679ac6fa90795d83033de2c801d2e06d8d
parentb93c72e33a50aaed845fe333dee0201b0b11934e (diff)
downloadgitlab-ce-clean-api-params.tar.gz
Parameter already enforced via grapeclean-api-params
-rw-r--r--lib/api/notes.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index d0faf17714b..284e4cf549a 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -69,8 +69,6 @@ module API
optional :created_at, type: String, desc: 'The creation date of the note'
end
post ":id/#{noteables_str}/:noteable_id/notes" do
- required_attributes! [:body]
-
opts = {
note: params[:body],
noteable_type: noteables_str.classify,