mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Only yield if block given
This commit is contained in:
		| @@ -14,7 +14,7 @@ class TestInstrumentation < Minitest::Test | |||||||
|  |  | ||||||
|     def instrument(name, *args) |     def instrument(name, *args) | ||||||
|       @events << Event.new(name, args) |       @events << Event.new(name, args) | ||||||
|       yield |       yield if block_given? | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user