mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
serialization: Remove redundancy in 'write-file'.
* guix/serialization.scm (write-file): Remove redundant 'member' call.
This commit is contained in:
parent
88600acc93
commit
c122a2e509
1 changed files with 1 additions and 2 deletions
|
@ -301,8 +301,7 @@ result of 'lstat'; exclude entries for which SELECT? does not return true."
|
||||||
(filter-map (lambda (base)
|
(filter-map (lambda (base)
|
||||||
(let ((file (string-append directory
|
(let ((file (string-append directory
|
||||||
"/" base)))
|
"/" base)))
|
||||||
(and (not (member base '("." "..")))
|
(and (select? file (lstat file))
|
||||||
(select? file (lstat file))
|
|
||||||
base)))
|
base)))
|
||||||
basenames))
|
basenames))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue