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