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:
Clément Lassieur 2018-03-20 19:44:40 +01:00
parent dde99782e0
commit 36027f05e9
No known key found for this signature in database
GPG Key ID: 89F96D4808F359C7
1 changed files with 1 additions and 4 deletions

View File

@ -150,10 +150,7 @@
(if (null? val) "" (if (null? val) ""
(match val (match val
((path text) ((path text)
(format #t "repo.~a.~a=~a\n" (format #t "repo.module-link.~a=~a\n" path text)))))
(string-drop-right (uglify-field-name 'module-link-path)
(string-length "-path"))
path text)))))
(define repository-directory? string?) (define repository-directory? string?)