summaryrefslogtreecommitdiff
path: root/lib/api/v3/commits.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/commits.rb')
-rw-r--r--lib/api/v3/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/commits.rb b/lib/api/v3/commits.rb
index 477e22fd25e..126cc95fc3d 100644
--- a/lib/api/v3/commits.rb
+++ b/lib/api/v3/commits.rb
@@ -162,7 +162,7 @@ module API
optional :path, type: String, desc: 'The file path'
given :path do
requires :line, type: Integer, desc: 'The line number'
- requires :line_type, type: String, values: ['new', 'old'], default: 'new', desc: 'The type of the line'
+ requires :line_type, type: String, values: %w(new old), default: 'new', desc: 'The type of the line'
end
end
post ':id/repository/commits/:sha/comments' do