Skip to content

Commit cc7d7ca

Browse files
committed
simplify fix for data[:params]
1 parent 16057a2 commit cc7d7ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/zenoss/jsonapi/device_router.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def get_devices(uid = '/zport/dmd/Devices', opts = {})
4040
data[:limit] = opts[:limit] if opts.has_key? :limit
4141
data[:sort] = opts[:sort_key] if opts.has_key? :sort_key
4242
data[:dir] = opts[:sort_ord] if opts.has_key? :sort_ord
43-
data[:params] = opts[:params] if opts.has_key? :params
44-
data[:params] ||= {}
43+
data[:params] = opts[:params] || {}
4544
resp = json_request('DeviceRouter', 'getDevices', [data])
4645

4746
devs = []

0 commit comments

Comments
 (0)