if w/o alternate -> when

This commit is contained in:
claytharrison 2024-12-21 19:03:32 +01:00
parent 443736121a
commit 4ae2caa892

View file

@ -355,7 +355,7 @@ This can be set by a buffer-local or project-local variable (e.g. a
((not (eql inferred-env nil)) (micromamba-env-name-to-dir inferred-env))
(t nil))))
(if (not (eql env-path nil))
(when (not (eql env-path nil))
(micromamba-activate env-path)
(if micromamba-message-on-environment-switch
(message "No Conda environment found for <%s>" (buffer-file-name))))))