Skip to content

Commit

Permalink
Merge pull request #1 from Vannevelj/develop
Browse files Browse the repository at this point in the history
Less ugliness and removed an inconsistency concerning ConditionalOper…
  • Loading branch information
Hosch250 committed Aug 5, 2015
2 parents afbf21d + c3d0304 commit 6c9a707
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private void AnalyzeSymbol(SyntaxNodeAnalysisContext context)
return;
}

var hasTrueLiteral = trueExpression.Token.ValueText == "true" && trueExpression.Token.Value is bool;
var hasFalseLiteral = falseExpression.Token.ValueText == "false" && trueExpression.Token.Value is bool;
var hasTrueLiteral = trueExpression.Token.IsKind(SyntaxKind.TrueKeyword) && trueExpression.Token.Value is bool;
var hasFalseLiteral = falseExpression.Token.IsKind(SyntaxKind.FalseKeyword) && falseExpression.Token.Value is bool;

if (hasTrueLiteral && hasFalseLiteral)
{
Expand Down

0 comments on commit 6c9a707

Please sign in to comment.