Unused variable removed
This commit is contained in:
parent
da6309400c
commit
9a0da2b396
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue