Skip to content

Commit

Permalink
h--tests-init-fake-git-repo: remove useless exit-code
Browse files Browse the repository at this point in the history
  • Loading branch information
picnoir committed Jun 24, 2022
1 parent 9b953a7 commit 1030d83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions h-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ The directory gets deleted once we exit FUNC."
If DIR doesn't exists, we create it first."
(let* ((d (file-name-as-directory dir))
(exit-code 0)
(git-process
(progn
(make-directory d t)
(h--call-git-in-dir d
(lambda (ec) (setq exit-code ec))
nil
"init"))))
(progn
(unless (file-directory-p d) (make-directory d t))
Expand Down

0 comments on commit 1030d83

Please sign in to comment.