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
7
main.scm
7
main.scm
|
@ -155,10 +155,9 @@ string-block
|
|||
(call-with-input-pipe "git shortlog -ns HEAD" read-lines)))))))))
|
||||
|
||||
(define (generate-repository-directory)
|
||||
(if (directory-exists? REPOSITORY-DIRECTORY)
|
||||
(begin (delete-directory REPOSITORY-DIRECTORY #t)
|
||||
(create-directory REPOSITORY-DIRECTORY #t))
|
||||
(create-directory REPOSITORY-DIRECTORY #t)))
|
||||
(when (directory-exists? REPOSITORY-DIRECTORY)
|
||||
(delete-directory REPOSITORY-DIRECTORY #t))
|
||||
(create-directory REPOSITORY-DIRECTORY #t))
|
||||
|
||||
(define (generate-html-files)
|
||||
(let ((source-files-list (git-repository->paths-list)))
|
||||
|
|
Loading…
Reference in a new issue