bug fixes with storage manager

This commit is contained in:
Albert Yi
2018-07-20 14:47:58 -07:00
parent 791a96f689
commit 6fb20fca89
2 changed files with 6 additions and 3 deletions

View File

@@ -70,8 +70,11 @@ class StorageManager::Match < StorageManager
end
if match
yield manager if block_given?
return manager unless block_given?
if block_given?
return yield(manager)
else
return manager
end
end
end
end