From 00a436f1757c8e0f13ee4de6fa390b13059a53fd Mon Sep 17 00:00:00 2001 From: Syed Humza Shah Date: Fri, 18 Dec 2015 01:24:05 +0000 Subject: [PATCH 1/3] 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 From 97afedd86114caf1dc5f8c2e7f991a5009747107 Mon Sep 17 00:00:00 2001 From: Syed Humza Shah Date: Fri, 18 Dec 2015 01:27:58 +0000 Subject: [PATCH 2/3] removed usage of keyword as variable this was done mainly to fix annoying syntax highlighting --- lib/linguist/lazy_blob.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linguist/lazy_blob.rb b/lib/linguist/lazy_blob.rb index 28fb78f3..5418eeae 100644 --- a/lib/linguist/lazy_blob.rb +++ b/lib/linguist/lazy_blob.rb @@ -86,8 +86,8 @@ module Linguist protected # Returns true if the attribute is present and not the string "false". - def boolean_attribute(attr) - attr != "false" + def boolean_attribute(attrbute) + attribute != "false" end def load_blob! From a3613dc4380ee5f3bea0bf5b1d3fb292347780a5 Mon Sep 17 00:00:00 2001 From: Syed Humza Shah Date: Fri, 18 Dec 2015 01:43:01 +0000 Subject: [PATCH 3/3] fixed a typo --- lib/linguist/lazy_blob.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/lazy_blob.rb b/lib/linguist/lazy_blob.rb index 5418eeae..e828dca6 100644 --- a/lib/linguist/lazy_blob.rb +++ b/lib/linguist/lazy_blob.rb @@ -86,7 +86,7 @@ module Linguist protected # Returns true if the attribute is present and not the string "false". - def boolean_attribute(attrbute) + def boolean_attribute(attribute) attribute != "false" end