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

Remove unused assignments #20879

Merged
merged 2 commits into from
Dec 8, 2020
Merged

Remove unused assignments #20879

merged 2 commits into from
Dec 8, 2020

Conversation

djberg96
Copy link
Contributor

@djberg96 djberg96 commented Dec 8, 2020

Running the rubocop linter revealed the following unused assignments in app/models. This PR cleans them.

@miq-bot
Copy link
Member

miq-bot commented Dec 8, 2020

Checked commits https://github.com/djberg96/manageiq/compare/8956fc97ca5f5ab2923647aa11bdcae1296e61e7~...3715bb7fed412b011095b4bee9758212953958d3 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
6 files checked, 0 offenses detected
Everything looks fine. 🍪

@@ -50,7 +50,6 @@ def encrypt_queue_params(params)
end

def create_in_provider_queue(manager_id, params, auth_user = nil)
manager = parent.find(manager_id)
Copy link
Member

Choose a reason for hiding this comment

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

Interesting - @agrare ?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah @djberg96 posted about this on gitter this morning [ref], 34eac12#diff-5d49121ce998251e7bee6e65be3367227fc6caddb651caa82f198a188458de73L56 removed the use of manager.my_zone so this lookup isn't necessary anymore

@Fryguy
Copy link
Member

Fryguy commented Dec 8, 2020

The rest LGTM - just want @agrare to eyeball the one.

@Fryguy Fryguy merged commit 2c2fa5a into ManageIQ:master Dec 8, 2020
@Fryguy Fryguy self-assigned this Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants