diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-05-22 15:43:55 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-05-22 15:43:55 -0400 |
| commit | e78d3c99640aa3c4f052b522a7cfc8ce8caf0d6f (patch) | |
| tree | 878a590b002808bd0f42c12328581c570c360173 | |
| parent | 7423cf5ded2a621c6021e6ee0a048ee1e8d03880 (diff) | |
fix unused mod warning in totp
| -rw-r--r-- | kasi-totp.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 81 | 81 | ||
| 82 | This is not a 100% faithful implementation of RFC 4648. The | 82 | This is not a 100% faithful implementation of RFC 4648. The |
| 83 | concept of encoding partial quanta is not implemented fully." | 83 | concept of encoding partial quanta is not implemented fully." |
| 84 | (unless (mod (length string) 8) | 84 | (unless (zerop (mod (length string) 8)) |
| 85 | (error "Padding is incorrect")) | 85 | (error "Padding is incorrect")) |
| 86 | (setq string (upcase string)) | 86 | (setq string (upcase string)) |
| 87 | (let* ((trimmed-array (append (string-trim-right string "=+") nil)) | 87 | (let* ((trimmed-array (append (string-trim-right string "=+") nil)) |
