From e78d3c99640aa3c4f052b522a7cfc8ce8caf0d6f Mon Sep 17 00:00:00 2001 From: Vineet Kumar Date: Fri, 22 May 2026 15:43:55 -0400 Subject: fix unused mod warning in totp --- kasi-totp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasi-totp.el b/kasi-totp.el index b0f9a5f..f22c30c 100644 --- 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)) -- cgit v1.2.3