Skip to content

Commit 9d62df1

Browse files
committed
Minor simplification
1 parent b1a5864 commit 9d62df1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elisp/runfiles/runfiles.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; runfiles.el --- access to Bazel runfiles -*- lexical-binding: t; -*-
22

3-
;; Copyright 2020, 2021, 2022, 2023 Google LLC
3+
;; Copyright 2020, 2021, 2022, 2023, 2024 Google LLC
44
;;
55
;; Licensed under the Apache License, Version 2.0 (the "License");
66
;; you may not use this file except in compliance with the License.
@@ -64,11 +64,11 @@ an error of type ‘elisp/runfiles/not-found’."
6464
(when-let ((value (getenv "RUNFILES_DIR")))
6565
(unless (string-empty-p value)
6666
(setq directory (concat "/:" value)))))
67-
(let* ((impl (or (and manifest (not (string-equal manifest ""))
67+
(let* ((impl (or (and manifest (not (string-empty-p manifest))
6868
(file-regular-p manifest)
6969
(file-readable-p manifest)
7070
(elisp/runfiles/make--manifest manifest))
71-
(and directory (not (string-equal directory ""))
71+
(and directory (not (string-empty-p directory))
7272
(file-accessible-directory-p directory)
7373
(elisp/runfiles/make--directory directory))
7474
(signal 'elisp/runfiles/not-found

0 commit comments

Comments
 (0)