summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Purcell <steve@sanityinc.com>2019-05-29 11:23:25 +1200
committerSteve Purcell <steve@sanityinc.com>2019-05-29 11:23:25 +1200
commit469c6e08542d204c10123b21b4a2435a8fb3066a (patch)
tree51c9a2cb7da7b0b63c223e177164ae0722dcb339
parent5646e5b858f2357b32fe2dbf8e00c82307d905a6 (diff)
Prefer "unless" to "when" + "not"
-rw-r--r--ledger-post.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/ledger-post.el b/ledger-post.el
index a274e18..5dc9ff1 100644
--- a/ledger-post.el
+++ b/ledger-post.el
@@ -126,8 +126,7 @@ Looks only as far as END, if supplied, otherwise `point-max'."
(forward-line -1)
(looking-at-p (rx bol (0+ (or "\n" whitespace)) eol)))
(ledger-post-align-postings (line-beginning-position) (line-end-position))
- (when (not (= ledger-post-account-alignment-column
- (current-indentation)))
+ (unless (= ledger-post-account-alignment-column (current-indentation))
(delete-horizontal-space))
(indent-to ledger-post-account-alignment-column)))