Skip to content

Commit

Permalink
Remove unnecessary null pointer checks (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reminiscent authored and dutor committed Jan 2, 2020
1 parent 4484fb0 commit 0b2f4f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/parser/GQLParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class GQLParser {
}

~GQLParser() {
if (sentences_ != nullptr) {
delete sentences_;
}
delete sentences_;
}

StatusOr<std::unique_ptr<SequentialSentences>> parse(std::string query) {
Expand Down

0 comments on commit 0b2f4f4

Please sign in to comment.