Merge pull request #2776 from humzashah/minor-code-improvements

minor code improvements
This commit is contained in:
Arfon Smith
2015-12-18 11:50:25 -05:00
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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(attribute)
attribute != "false"
end
def load_blob!