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

Add missing return #9413

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Add missing return #9413

merged 1 commit into from
Jul 11, 2024

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Jul 11, 2024

rubocop 1.65.0 fixed false negatives for Lint/Void, which highlighted some bugs where the guard clauses weren't doing anything.

Commit 01db61e moved code from runtime3_support to runtime3_resource_support:

* Runtime3Support is modified to use Runtime3ResourceSupport instead of
  directly containing the methods for resource search and creation.

But the resource_to_ptype method was copied instead of moved. So delete it from Runtime3Support.

This should not be backported to 7.x, since we're constrained to an older version:

puppet/Gemfile

Line 55 in 46e88b4

gem 'rubocop', '1.28.0', require: false, platforms: [:ruby]

rubocop 1.65.0 fixed false negatives for Lint/Void, which highlighted
some bugs where the guard clauses weren't doing anything.

Commit 01db61e moved code from runtime3_support to runtime3_resource_support:

    * Runtime3Support is modified to use Runtime3ResourceSupport instead of
      directly containing the methods for resource search and creation.

But the resource_to_ptype method was copied instead of moved. So delete
it from Runtime3Support.
@joshcooper joshcooper marked this pull request as ready for review July 11, 2024 07:34
@joshcooper joshcooper requested a review from a team as a code owner July 11, 2024 07:34
@mhashizume mhashizume added the bug Something isn't working label Jul 11, 2024
@mhashizume mhashizume merged commit 40d9bd8 into puppetlabs:main Jul 11, 2024
10 checks passed
@joshcooper joshcooper deleted the rubocop_1_65_0 branch July 11, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants