Skip to content

A poorly styled change#2

Open
alextwoods wants to merge 1 commit into
masterfrom
test_change
Open

A poorly styled change#2
alextwoods wants to merge 1 commit into
masterfrom
test_change

Conversation

@alextwoods

Copy link
Copy Markdown
Owner

Pronto?

Comment thread test.rb
puts "This should trigger warnings!"
end

if y = 3

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Useless assignment to variable - y.

Comment thread test.rb
puts "This should trigger warnings!"
end

if y = 3

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.

Comment thread test.rb
end

if y = 3
puts "This is a new change that should get a comment"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

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.

1 participant