We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6322511 commit 049cdbbCopy full SHA for 049cdbb
reftable/record.c
@@ -1154,9 +1154,11 @@ int reftable_ref_record_equal(struct reftable_ref_record *a,
1154
struct reftable_ref_record *b, int hash_size)
1155
{
1156
assert(hash_size > 0);
1157
- if (!(0 == strcmp(a->refname, b->refname) &&
1158
- a->update_index == b->update_index &&
1159
- a->value_type == b->value_type))
+ if (!null_streq(a->refname, b->refname))
+ return 0;
+
1160
+ if (a->update_index != b->update_index ||
1161
+ a->value_type != b->value_type)
1162
return 0;
1163
1164
switch (a->value_type) {
0 commit comments