Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
md-arif-shaikh committed May 1, 2023
1 parent 7a091c4 commit 49da84f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions expenses.el
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,6 @@ Optional argument USER for user name."
(let* ((user (completing-read "Select user: " (expenses-users)))
(date (org-read-date nil nil nil "Date: "))
(categories (expenses--ask-for-categories))
(month (format-time-string "%B" (org-time-string-to-seconds date)))
(year (format-time-string "%Y" (org-time-string-to-seconds date)))
(expenses (cl-loop for category in categories
collect (expenses--get-expense-for-month-filtered-by-categories date category user)))
(sorted-expenses-category-list)
Expand Down Expand Up @@ -613,9 +611,9 @@ Optional argument USER for user name."
(setq total-string (format "%s = %10s" (propertize "Total" 'face 'expenses-face-message) (propertize (number-to-string total) 'face 'expenses-face-expense)))
(insert total-string)
(align-regexp (point-min) (point-max) "\\(\\s-*\\)=")
(goto-line 4)
(forward-line 4)
(align-regexp (point-min) (point) "\\(\\s-*\\):")
(end-of-buffer)
(goto-char (point-max))
(read-only-mode)
(message total-string)
(switch-to-buffer-other-window buffer-name))))
Expand Down

0 comments on commit 49da84f

Please sign in to comment.