summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-11-05 19:53:44 -0800
committerGitHub <noreply@github.com>2019-11-05 19:53:44 -0800
commit30470bbbc2b70defab2c7361b0d695b6ff1d6083 (patch)
tree60d5508c8e58d81c2c913484f75c32a140e03039
parent498b2dc23778176b0a018b2559cdb3036aeeef35 (diff)
parent145bc8d50415c5f01cdb0cb5685eea0a7738b7ea (diff)
downloadchef-30470bbbc2b70defab2c7361b0d695b6ff1d6083.tar.gz
Merge pull request #9070 from chef/lcg/remove-useless-code
Remove useless search arg mangling
-rw-r--r--lib/chef/search/query.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb
index 5a9c1f6d41..46dedd33f8 100644
--- a/lib/chef/search/query.rb
+++ b/lib/chef/search/query.rb
@@ -126,9 +126,6 @@ class Chef
return args.first if args.first.is_a?(Hash)
args_h = {}
- # If we have 4 arguments, the first is the now-removed sort option, so
- # just ignore it.
- args.pop(0) if args.length == 4
args_h[:start] = args[0] if args[0]
args_h[:rows] = args[1]
args_h[:filter_result] = args[2]