17010: Use !! instead of (? true : false)
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 22 Oct 2020 18:44:37 +0000 (14:44 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 23 Oct 2020 01:02:16 +0000 (21:02 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/controllers/container_requests_controller.rb

index 9baf82795f0c0ee4bedabc688d7bf61fdfa973a0..be463b022cc6ed013ab652fba16140daf4e2d08d 100644 (file)
@@ -178,7 +178,7 @@ class ContainerRequestsController < ApplicationController
 
     if params[:use_existing] || params[:use_existing].nil?
       # If nil, reuse workflow steps but not the workflow runner.
-      @object.use_existing = (params[:use_existing] ? true : false)
+      @object.use_existing = !!params[:use_existing]
 
       # Pass the correct argument to arvados-cwl-runner command.
       if command[0] == 'arvados-cwl-runner'