]> diplodocus.org Git - nmh/commit
icalparse.y: Remove else-block that returns by merging if-conditions.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 20:30:39 +0000 (21:30 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 20:30:39 +0000 (21:30 +0100)
commitea1fd31a3d41352b024fb35a1a781dce6a2f7afe
treeda0ed9ad7b3d1ee17a929f24532e934ed71640e7
parent877ea64f087e0327e1b63f23d29ac13fe4ad6fbd
icalparse.y: Remove else-block that returns by merging if-conditions.

The code tested two values to see if they were present, and if they
were, and were equal, then it returned this node.  If either were
missing then this node was still returned because it matched the more
limited criteria that had already been tested.  So the test for
returning this node can more simply be if either value to compare is
missing, or they're (both present and) equal.
sbr/icalparse.y