{"thread":{"id":"5257","subject":"[PATCH 08/28] remove conditional return","startedAt":"2006-08-14T20:25:34Z","lastAt":"2006-08-14T20:25:34Z","messageCount":1,"participants":["David Rientjes"],"isPatch":true,"patchVersion":1,"patchTotal":28},"messages":[{"id":"25288","messageId":"Pine.LNX.4.63.0608141324490.19383@chino.corp.google.com","threadId":"5257","inReplyTo":null,"subject":"[PATCH 08/28] remove conditional return","fromName":"David Rientjes","fromEmail":"rientjes@google.com","sentAt":"2006-08-14T20:25:34Z","receivedAt":"2006-08-14T20:25:34Z","isPatch":true,"sender":{"key":"rientjes@google.com","avatar":null},"body":"Removes conditional return from builtin-pack-objects.c\n\n\t\tDavid\n\nSigned-off-by: David Rientjes <rientjes@google.com>\n---\n builtin-pack-objects.c |    7 +------\n 1 files changed, 1 insertions(+), 6 deletions(-)\n\ndiff --git a/builtin-pack-objects.c b/builtin-pack-objects.c\nindex 2f99212..eb287a2 100644\n--- a/builtin-pack-objects.c\n+++ b/builtin-pack-objects.c\n@@ -138,12 +138,7 @@ static int cmp_offset(const void *a_, co\n {\n \tunsigned long a = *(unsigned long *) a_;\n \tunsigned long b = *(unsigned long *) b_;\n-\tif (a < b)\n-\t\treturn -1;\n-\telse if (a == b)\n-\t\treturn 0;\n-\telse\n-\t\treturn 1;\n+\treturn (a < b) ? -1 : !(a == b);\n }\n \n /*\n-- \n1.4.2.g89bb-dirty\n"}]}