gobject-query: Combine two identical if-branches

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-09 13:23:11 +01:00
parent ad77557277
commit 6211e25953

View File

@ -170,11 +170,8 @@ main (gint argc,
{
gen_tree = 1;
}
else if (strcmp ("-h", argv[i]) == 0)
{
return help (NULL);
}
else if (strcmp ("--help", argv[i]) == 0)
else if (strcmp ("-h", argv[i]) == 0 ||
strcmp ("--help", argv[i]) == 0)
{
return help (NULL);
}