]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Prefer a != b over !(a == b) (#2303)
authorRose Silicon <gfunni234@gmail.com>
Sun, 1 Sep 2024 03:03:24 +0000 (23:03 -0400)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2024 03:03:24 +0000 (20:03 -0700)
commit57d77921bbd21ca830a14acd8ad222495d3eeb6a
tree0254ce74c426c0c469b53726f685ced06fcc5b0e
parent8137ba17b64fd70b8179b5f5431ace7b5d7a0b7a
Prefer a != b over !(a == b) (#2303)

This is not C++ or another language where this may have been necessary,
nor is the condition complex at all; it is only a single equality
comparison.
libarchive/archive_read_support_format_rar.c
libarchive/archive_write_set_format_gnutar.c
libarchive/archive_write_set_format_ustar.c
libarchive/archive_write_set_format_v7tar.c