Skip to content

Commit cd36920

Browse files
author
Jason Duncan
committed
Got rid of useless intermediary function.
1 parent 0db425c commit cd36920

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

dashboard-project-status.el

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,14 @@
6565
(concat (file-name-as-directory git-repo) cur))
6666
ret))))))))
6767

68-
(defun dashboard-insert-project-status- (project-dir update)
69-
"Do the actual work for `dashboard-insert-project-status'."
70-
(when update (git-run "remote" "update"))
71-
(dashboard-insert-project-status-heading)
72-
(dashboard-insert-project-status-body))
73-
7468
(defun dashboard-insert-project-status (project-dir &optional update)
7569
"Return a function which will insert git status for PROJECT-DIR.
7670
If UPDATE is non-nil, update the remote first with 'git remote update'."
7771
`(lambda (list-size)
7872
(let ((git-repo ,project-dir))
79-
(dashboard-insert-project-status- ,project-dir ,update))))
73+
(when ,update (git-run "remote" "update"))
74+
(dashboard-insert-project-status-heading)
75+
(dashboard-insert-project-status-body))))
8076

8177
(provide 'dashboard-project-status)
8278
;;; dashboard-project-status.el ends here

0 commit comments

Comments
 (0)