Skip to content

Fix wrong use of assert#568

Merged
dtarditi merged 1 commit intocheckedc:masterfrom
equal-l2:fix-wrong-use-of-assert
Oct 6, 2018
Merged

Fix wrong use of assert#568
dtarditi merged 1 commit intocheckedc:masterfrom
equal-l2:fix-wrong-use-of-assert

Conversation

@equal-l2
Copy link
Copy Markdown
Contributor

@equal-l2 equal-l2 commented Oct 6, 2018

When converting a string literal to a boolean value, it will be true.
This makes assert("Foo Bar Baz") pointless (never fails).

When converting a string literal to a boolean value, it will be `true`.
This makes `assert("Foo Bar Baz")` pointless (never fails).
@msftclas
Copy link
Copy Markdown

msftclas commented Oct 6, 2018

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown
Member

@dtarditi dtarditi left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

3 participants