mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
used proper 'if/elsif/end' syntax
This commit is contained in:
@@ -13,8 +13,8 @@ class << Linguist
|
|||||||
def instrument(*args, &bk)
|
def instrument(*args, &bk)
|
||||||
if instrumenter
|
if instrumenter
|
||||||
instrumenter.instrument(*args, &bk)
|
instrumenter.instrument(*args, &bk)
|
||||||
else
|
elsif block_given?
|
||||||
yield if block_given?
|
yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user