mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: cgit: Simplify 'serialize-module-link-path'.
* gnu/services/cgit.scm (serialize-module-link-path): Remove STRING-DROP-RIGHT and UGLIFY-FIELD-NAME.
This commit is contained in:
parent
dde99782e0
commit
36027f05e9
1 changed files with 1 additions and 4 deletions
|
@ -150,10 +150,7 @@ (define (serialize-module-link-path field-name val)
|
|||
(if (null? val) ""
|
||||
(match val
|
||||
((path text)
|
||||
(format #t "repo.~a.~a=~a\n"
|
||||
(string-drop-right (uglify-field-name 'module-link-path)
|
||||
(string-length "-path"))
|
||||
path text)))))
|
||||
(format #t "repo.module-link.~a=~a\n" path text)))))
|
||||
|
||||
(define repository-directory? string?)
|
||||
|
||||
|
|
Loading…
Reference in a new issue