[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: lint: Avoid calls to 'package-field-location' with #f as the fiel
From: |
guix-commits |
Subject: |
01/02: lint: Avoid calls to 'package-field-location' with #f as the field. |
Date: |
Sun, 23 Aug 2020 17:08:27 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 68193624d1428836b18e93306f96e78706e082c3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Aug 23 22:11:31 2020 +0200
lint: Avoid calls to 'package-field-location' with #f as the field.
* guix/lint.scm (%make-warning): Call 'package-field-location' only when
FIELD is true.
---
guix/lint.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/lint.scm b/guix/lint.scm
index 71ce931..4a6abe4 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -139,7 +139,7 @@
message-text
message-data
(or location
- (package-field-location package field)
+ (and field (package-field-location package field))
(package-location package))))
(define-syntax make-warning