Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing nil error #7

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

joshua-stone
Copy link
Contributor

@joshua-stone joshua-stone commented Jun 1, 2016

As pointed out by a bug report, Louis.lookup doesn't handle nil elegantly. I think it'd be sensible to explicitly have it accept only strings early in the method call, and use {'long_vendor' => 'Unknown', 'short_vendor' => 'Unknown'} as a fallback for nil and any other non-string types instead of causing a NoMethodError that has to be handled separately.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 85.366% when pulling ddcb477 on joshua-stone:bugfix into f1c993c on pwnieexpress:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants