Unused variable removed

This commit is contained in:
Christoph Haas 2015-04-24 17:00:45 +02:00
parent da6309400c
commit 9a0da2b396

View file

@ -244,7 +244,7 @@ end
# Check if a package name is blacklisted and should not be imported.
# This prevents importing boring software that likely does not get a useful screenshot.
def package_name_blacklisted?(name)
if match=BLACKLIST_NAME_PATTERN.find { |pattern| name=~pattern}
if BLACKLIST_NAME_PATTERN.find { |pattern| name=~pattern}
Rails.logger.debug " > Blacklisted by name ('#{name}')"
return true
else
@ -255,7 +255,7 @@ end
# Check if a package's section is blacklisted and should not be imported.
# This prevents importing boring software that likely does not get a useful screenshot.
def package_section_blacklisted?(section)
if match=BLACKLIST_SECTION_PATTERN.find { |pattern| section=~pattern}
if BLACKLIST_SECTION_PATTERN.find { |pattern| section=~pattern}
Rails.logger.debug " > Blacklisted by section ('#{section}')"
return true
else