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

Minor refactor and explanatory comments #987

Merged
merged 1 commit into from
Aug 29, 2016
Merged

Minor refactor and explanatory comments #987

merged 1 commit into from
Aug 29, 2016

Conversation

stevendanna
Copy link
Contributor

This is a minor refactor that I did while studying our loading code in
preparation for some deeper changes to how content loading works. The
overall goal of the refactor is to remove a few places where we were
passing a generic options hash and then only accessing a single item.

The comment hopefully clarifies to new developers in the code base how
content loading works at a high level.

Signed-off-by: Steven Danna steve@chef.io

This is a minor refactor that I did while studying our loading code in
preparation for some deeper changes to how content loading works. The
overall goal of the refactor is to remove a few places where we were
passing a generic options hash and then only accessing a single item.

The comment hopefully clarifies to new developers in the code base how
content loading works at a high level.

Signed-off-by: Steven Danna <steve@chef.io>
@@ -15,9 +15,8 @@ module Inspec
class Profile # rubocop:disable Metrics/ClassLength
extend Forwardable

def self.resolve_target(target, opts)
def self.resolve_target(target)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@chris-rock chris-rock merged commit efec631 into master Aug 29, 2016
@chris-rock chris-rock deleted the ssd/comments branch August 29, 2016 09:35
@chris-rock chris-rock modified the milestone: 0.33.0 Sep 2, 2016
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.

None yet

3 participants