X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2ab1b540a710fd454f33e9ba22db601e67f3d217..e663d52fd17d989ad4be1a34413c21537cbe957e:/services/api/lib/load_param.rb diff --git a/services/api/lib/load_param.rb b/services/api/lib/load_param.rb index 3e1e8b5eba..247708be47 100644 --- a/services/api/lib/load_param.rb +++ b/services/api/lib/load_param.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Mixin module for reading out query parameters from request params. # # Expects: @@ -153,7 +157,7 @@ module LoadParam # Any ordering columns must be selected when doing select, # otherwise it is an SQL error, so filter out invaliding orderings. @orders.select! { |o| - col, dir = o.split + col, _ = o.split # match select column against order array entry @select.select { |s| col == "#{table_name}.#{s}" }.any? }