mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
less code duplication
This commit is contained in:
@@ -154,7 +154,7 @@ module Redistat
|
|||||||
|
|
||||||
def find_by_magic(options = {})
|
def find_by_magic(options = {})
|
||||||
raise InvalidOptions.new if !valid_options?
|
raise InvalidOptions.new if !valid_options?
|
||||||
key = Key.new(@options[:scope], @options[:label])
|
key = build_key
|
||||||
col = Collection.new(@options)
|
col = Collection.new(@options)
|
||||||
col.total = Result.new(@options)
|
col.total = Result.new(@options)
|
||||||
col << col.total
|
col << col.total
|
||||||
|
|||||||
Reference in New Issue
Block a user