summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorJohan Andersson <johan.rejeep@gmail.com>2013-09-04 20:03:07 +0200
committerJohan Andersson <johan.rejeep@gmail.com>2013-09-04 20:03:07 +0200
commit1af6507187f3e958014ebc02b98353f411b8cfd3 (patch)
tree47aef5a37bc78176f5e046bbccaa81a8a6188eb2 /s.el
parentaac4a2faff9fb5f61983aaf95f6c2a5f7b354d9f (diff)
Remove double negation.
Diffstat (limited to 's.el')
-rw-r--r--s.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/s.el b/s.el
index bcf472b..80ed791 100644
--- a/s.el
+++ b/s.el
@@ -269,8 +269,8 @@ This is a simple wrapper around the built-in `string-match-p'."
(not (s-blank? s)))
(defun s-presence (s)
- "Return S if it's not `s-blank?', otherwise return nil."
- (unless (s-blank? s) s))
+ "Return S if it's `s-present?', otherwise return nil."
+ (and (s-present? s) s))
(defun s-lowercase? (s)
"Are all the letters in S in lower case?"