commit e78d3c99640aa3c4f052b522a7cfc8ce8caf0d6f
parent 7423cf5ded2a621c6021e6ee0a048ee1e8d03880
Author: Vineet Kumar <git@vineetk.net>
Date: Fri, 22 May 2026 15:43:55 -0400
fix unused mod warning in totp
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kasi-totp.el b/kasi-totp.el
@@ -81,7 +81,7 @@ string."
This is not a 100% faithful implementation of RFC 4648. The
concept of encoding partial quanta is not implemented fully."
- (unless (mod (length string) 8)
+ (unless (zerop (mod (length string) 8))
(error "Padding is incorrect"))
(setq string (upcase string))
(let* ((trimmed-array (append (string-trim-right string "=+") nil))