From fdba4472fc4a5e7cf2b031643cacdee0519cc628 Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Mon, 10 Feb 2020 22:04:08 -0500 Subject: [PATCH] lang/python: reformat checks to prefer unless --- modules/lang/python/doctor.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/lang/python/doctor.el b/modules/lang/python/doctor.el index 085295c37..a711ca9ea 100644 --- a/modules/lang/python/doctor.el +++ b/modules/lang/python/doctor.el @@ -28,17 +28,17 @@ (unless (executable-find "ipython") (warn! "Couldn't find ipython in your PATH"))) -(if (not (executable-find "pytest")) - (warn! "Couldn't find pytest. Running tests through pytest will not work.")) +(unless (executable-find "pytest") + (warn! "Couldn't find pytest. Running tests through pytest will not work.")) -(if (not (executable-find "nosetests")) - (warn! "Couldn't find nosetests. Running tests through nose will not work.")) +(unless (executable-find "nosetests") + (warn! "Couldn't find nosetests. Running tests through nose will not work.")) -(if (not (executable-find "pipenv")) - (warn! "Couldn't find pipenv. pipenv support will not work.")) +(unless (executable-find "pipenv") + (warn! "Couldn't find pipenv. pipenv support will not work.")) -(if (not (executable-find "isort")) - (warn! "Couldn't find isort. Import sorting will not work.")) +(unless (executable-find "isort") + (warn! "Couldn't find isort. Import sorting will not work.")) (when (featurep! :editor format) (unless (executable-find "pyflakes")