diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-22 12:19:25 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-22 16:55:07 +0300 |
commit | bf7846bec07157a8023770d03854834cceb69e3d (patch) | |
tree | 5d9c61964ee65add2e51a51dde61a9d09167f2e5 /lib | |
parent | 56a54c62fba093ae53c8fef309454f38d3778b0f (diff) |
Only use boolean parameters internally
Use internally only boolean params.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/issues.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index 3862c29d841..f43f4d961d6 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -15,14 +15,6 @@ module API params :issue_params_ee do end - - def convert_confidential_param(args) - confidential = args.delete(:confidential) - return args if confidential.nil? - - args[:confidential] = confidential ? 'yes' : 'no' - args - end end helpers do @@ -34,7 +26,6 @@ module API args[:milestone_title] = args.delete(:milestone) args[:label_name] = args.delete(:labels) args[:scope] = args[:scope].underscore if args[:scope] - args = convert_confidential_param(args) issues = IssuesFinder.new(current_user, args).execute .preload(:assignees, :labels, :notes, :timelogs, :project, :author, :closed_by) |