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

Don't use if/unless inside a string interpolation #4671

Conversation

mzazrivec
Copy link
Contributor

As mentioned in #4658 (comment)

@miq-bot
Copy link
Member

miq-bot commented Sep 17, 2018

Checked commit mzazrivec@3fd9532 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 👍

@@ -256,7 +256,7 @@ def textual_storage
main = @record.storage
h[:value] = storages.sort_by { |s| s.name.downcase }.collect do |s|
{:icon => "fa fa-database",
:value => "#{s.name}#{" (main)" if s == main}",
:value => s.name + (s == main ? ' (main)' : ''),
Copy link
Member

Choose a reason for hiding this comment

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

+ on strings is evil, are you sure we want it?

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

@martinpovolny martinpovolny self-assigned this Oct 2, 2018
@martinpovolny martinpovolny added this to the Sprint 96 Ending Oct 8, 2018 milestone Oct 2, 2018
@martinpovolny martinpovolny merged commit 97a1fa3 into ManageIQ:master Oct 2, 2018
@mzazrivec mzazrivec deleted the dont_use_conditions_inside_string_interpolation branch October 2, 2018 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants