Closed benthamite closed 1 year ago
I think a better way to write this is (and prenote (not (string-empty-p prenote)))
, explicitly checking for prenote being non-nil and non-empty. Using length
only works because (length nil) => 0
, but it's a little non-obvious.
I think a better way to write this ...
I agree. Does it work on your end?
If yes, can you just make that change here?
@roshanshariff, thanks. I think it should be (or (not prenote) (string-empty-p prenote))
, i.e. the negation of your condition.
I made the changes. (I tried to squash the new commit, which I believe is the recommendation, but had an issue with Forge/Magit, so I ended up force-pushing it. I'm not a programmer; apologies if this wasn't the correct process.)
I tried to squash the new commit, which I believe is the recommendation, but had an issue with Forge/Magit, so I ended up force-pushing it ...
No worries; I can just squash merge it.
Thanks!
Closes #786