move common line outside conditional for d.r.y.
This commit is contained in:
parent
c69fe335e3
commit
42d1fab665
1 changed files with 3 additions and 4 deletions
5
main.scm
5
main.scm
|
@ -155,10 +155,9 @@ string-block
|
||||||
(call-with-input-pipe "git shortlog -ns HEAD" read-lines)))))))))
|
(call-with-input-pipe "git shortlog -ns HEAD" read-lines)))))))))
|
||||||
|
|
||||||
(define (generate-repository-directory)
|
(define (generate-repository-directory)
|
||||||
(if (directory-exists? REPOSITORY-DIRECTORY)
|
(when (directory-exists? REPOSITORY-DIRECTORY)
|
||||||
(begin (delete-directory REPOSITORY-DIRECTORY #t)
|
(delete-directory REPOSITORY-DIRECTORY #t))
|
||||||
(create-directory REPOSITORY-DIRECTORY #t))
|
(create-directory REPOSITORY-DIRECTORY #t))
|
||||||
(create-directory REPOSITORY-DIRECTORY #t)))
|
|
||||||
|
|
||||||
(define (generate-html-files)
|
(define (generate-html-files)
|
||||||
(let ((source-files-list (git-repository->paths-list)))
|
(let ((source-files-list (git-repository->paths-list)))
|
||||||
|
|
Loading…
Reference in a new issue