Skip to content

Commit

Permalink
#51 No nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechRynczuk committed Nov 27, 2018
1 parent 5040593 commit b2346cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sources/parsers/inc/ExpressionContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ namespace PARSER
/// Expression context destructor.
~ExpressionContext()
{
if (m_pExpression != nullptr)
{
delete m_pExpression;
}
delete m_pExpression;
}

/// Set the expression context.
Expand Down

0 comments on commit b2346cb

Please sign in to comment.