used proper 'if/elsif/end' syntax

This commit is contained in:
Syed Humza Shah
2015-12-18 01:24:05 +00:00
parent 10e0fa4360
commit 00a436f175

View File

@@ -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