Skip to content

Commit 6228738

Browse files
authored
Merge pull request #58 from chopraanmol1/request_store_fetch_optimization
RequestStore#fetch without &block
2 parents 6a0f3c9 + d23d5aa commit 6228738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def self.exist?(key)
4343
store.key?(key)
4444
end
4545

46-
def self.fetch(key, &block)
46+
def self.fetch(key)
4747
store[key] = yield unless exist?(key)
4848
store[key]
4949
end

0 commit comments

Comments
 (0)