From 00a436f1757c8e0f13ee4de6fa390b13059a53fd Mon Sep 17 00:00:00 2001 From: Syed Humza Shah Date: Fri, 18 Dec 2015 01:24:05 +0000 Subject: [PATCH] used proper 'if/elsif/end' syntax --- lib/linguist.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linguist.rb b/lib/linguist.rb index 3929efb9..589869c6 100644 --- a/lib/linguist.rb +++ b/lib/linguist.rb @@ -13,8 +13,8 @@ class << Linguist def instrument(*args, &bk) if instrumenter instrumenter.instrument(*args, &bk) - else - yield if block_given? + elsif block_given? + yield end end end