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

replace validate_hash with assert_type #415

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Conversation

bastelfreak
Copy link
Member

No description provided.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

There's a typo in the commit message too (which is not in the topic)

@@ -115,8 +115,7 @@
$full_settings = {
'' => $settings,
}

validate_hash($full_settings)
assert_type(Hash, $full_settings)
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this really redundant since the variable set above and not user controlled?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah right

@bastelfreak
Copy link
Member Author

@ekohl fixed

@ekohl ekohl merged commit 042cfef into voxpupuli:master Nov 20, 2017
@bastelfreak bastelfreak deleted the puppet4 branch November 20, 2017 11:58
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