diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-09-25 00:13:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-24 23:25:15 -0700 |
commit | 009c5bcd24da3cd2670962e405585e31d662487d (patch) | |
tree | bc9cff28c1dfdab74948dc0e66415b2d5f53078b /remote.c | |
parent | f4e95765b042f3e31a8902e78a5101768b33e445 (diff) | |
download | git-009c5bcd24da3cd2670962e405585e31d662487d.tar.gz |
Cleanup style nit of 'x == NULL' in remote.c
Git style tends to prefer "!x" over "x == NULL". Make it so in
these handful of locations that were not following along.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -416,7 +416,7 @@ int remote_find_tracking(struct remote *remote, struct refspec *refspec) int i; if (find_src) { - if (refspec->dst == NULL) + if (!refspec->dst) return error("find_tracking: need either src or dst"); needle = refspec->dst; result = &refspec->src; @@ -613,7 +613,7 @@ static int match_explicit(struct ref *src, struct ref *dst, if (!matched_src) errs = 1; - if (dst_value == NULL) + if (!dst_value) dst_value = matched_src->name; switch (count_refspec_match(dst_value, dst, &matched_dst)) { @@ -633,7 +633,7 @@ static int match_explicit(struct ref *src, struct ref *dst, dst_value); break; } - if (errs || matched_dst == NULL) + if (errs || !matched_dst) return 1; if (matched_dst->peer_ref) { errs = 1; |