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

Change ignore to be an optional recon argument #91

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

moozzi
Copy link
Member

@moozzi moozzi commented Dec 23, 2023

I am not sure if it will be out final version, but it's definitely more accurate than current solution as a ignore is an optional argument.

Copy link
Member

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor stylistic changes. I agree ignore should be optional.

workers/recon.rb Outdated
kwargs = validate(params)
values = kwargs[:scope].map(&Ronin::Recon::Value.method(:parse))
ignore = []
if (ignore_kwargs = kwargs[:ignore])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a newline before the if block.

Also, I prefer to use the return value of if/else blocks.

value = if foo
          ...
        else
          ...
        end

@postmodern postmodern merged commit 69b7365 into ronin-rb:main Dec 26, 2023
4 checks passed
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