simplify redundant (if COND #t #f)
This commit is contained in:
parent
58bd6a150d
commit
aac42ed7b2
1 changed files with 1 additions and 3 deletions
4
main.scm
4
main.scm
|
@ -74,9 +74,7 @@ string-block
|
||||||
(with-output-to-file file (lambda () (display contents))))
|
(with-output-to-file file (lambda () (display contents))))
|
||||||
|
|
||||||
(define (in-git-directory?)
|
(define (in-git-directory?)
|
||||||
(if (equal? (call-with-input-pipe "git rev-parse --is-bare-repository 2> /dev/null" read-line) "true")
|
(equal? (call-with-input-pipe "git rev-parse --is-bare-repository 2> /dev/null" read-line) "true"))
|
||||||
#t
|
|
||||||
#f))
|
|
||||||
|
|
||||||
(define (git-repository->paths-list)
|
(define (git-repository->paths-list)
|
||||||
(call-with-input-pipe "git ls-tree -r --name-only HEAD" read-lines))
|
(call-with-input-pipe "git ls-tree -r --name-only HEAD" read-lines))
|
||||||
|
|
Loading…
Reference in a new issue