Avoid double negation

This commit is contained in:
Pedro Fonini 2025-05-21 18:01:07 -03:00
parent cd31640009
commit 1dcf0fa021
No known key found for this signature in database

View File

@ -1585,8 +1585,10 @@ use_freebsd_pkg() {
has_broken_mac_readline() {
# Mac OS X 10.4 has broken readline.
# https://github.com/pyenv/pyenv/issues/23
is_mac || return 1
! configured_with_package_dir "python" "readline/rlconf.h" || return 1
if ! is_mac || configured_with_package_dir "python" "readline/rlconf.h"; then
# Not applicable.
return 1
fi
if can_use_homebrew; then
use_homebrew_readline && return 1
fi