From 4f8b6fc2dd343758b0ac2329db59fb62b0c6a736 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 22 Oct 2020 14:44:37 -0400 Subject: [PATCH] 17010: Use !! instead of (? true : false) Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- apps/workbench/app/controllers/container_requests_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workbench/app/controllers/container_requests_controller.rb b/apps/workbench/app/controllers/container_requests_controller.rb index 9baf82795f..be463b022c 100644 --- a/apps/workbench/app/controllers/container_requests_controller.rb +++ b/apps/workbench/app/controllers/container_requests_controller.rb @@ -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' -- 2.30.2