diff options
author | William Carroll <wpcarro@gmail.com> | 2022-08-02T21·16-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-08-03T20·23+0000 |
commit | 3461753478c2a8eff47c565d8729bbfd991f2729 (patch) | |
tree | 74406c8599641201ac88c8159801209108931a79 /users/wpcarro/emacs/pkgs | |
parent | 7e7ed4649b95794f11cc323715ca5f3df2e5eb04 (diff) |
refactor(wpcarro/emacs): Prefer (null foo) to (eq nil foo) r/4378
TIL `null` exists Change-Id: I48ef783cf5762e8770fbc6abf0d79c051e34090e Reviewed-on: https://cl.tvl.fyi/c/depot/+/6034 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/pkgs')
-rw-r--r-- | users/wpcarro/emacs/pkgs/maybe/maybe.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/users/wpcarro/emacs/pkgs/maybe/maybe.el b/users/wpcarro/emacs/pkgs/maybe/maybe.el index 3c386b531865..581568d8ccba 100644 --- a/users/wpcarro/emacs/pkgs/maybe/maybe.el +++ b/users/wpcarro/emacs/pkgs/maybe/maybe.el @@ -25,9 +25,6 @@ ;; Nil | Set ;; ;; NOTE: In Elisp, values like '() (i.e. the empty list) are aliases for nil. -;; What else in Elisp is an alias in this way? -;; Examples: -;; TODO: Provide examples of other nil types in Elisp. ;;; Code: @@ -37,7 +34,7 @@ (defun maybe-nil? (x) "Return t if X is nil." - (eq nil x)) + (null x)) (defun maybe-some? (x) "Return t when X is non-nil." |